trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
130 stars 19 forks source link

Set submodel substitute part as unofficial part #733

Closed trevorsandy closed 1 year ago

trevorsandy commented 1 year ago

Subject

Enable a user prompt and warning message when a substitute part is a submodel file and does not have an unofficial part !LDRAW_ORG header,

Environment

Version of LPub3D - 2.4.8 Operating system - All

Solution

When a substitute part is a submodel file and does not have an unofficial part !LDRAW_ORG header, Prompt the user to:

  1. Abort the model file parse to manually update the substitute part subfile.
  2. Automatically set the substitute part as an unofficial part and continue parsing the model file.
  3. Ignore the message and continue parsing the model file.

If LPub3D is running as a unattended, console or background process, automatically set the submodel substitute part as an unofficial part, log a warning message, and continue parsing the model file.

Lastly, in Project Global Setup, you can enable LPub3D to automatically set submodels used as a substitute part as unofficial parts. When enabled, LPub3D will silently set a substitute submodel file as an unofficial part.

Cheers,

trevorsandy commented 1 year ago

This change has been implemented.

Project Global Setup - Submodel Substitute Parts enabled SubstitutePart_02

Default behaviour - set submodel substitute as unofficial part prompt SubstitutePart_01

Cheers,