Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty CSI annotation #187

Closed
trevorsandy opened this issue Mar 17, 2019 · 4 comments
Closed

Pretty CSI annotation #187

trevorsandy opened this issue Mar 17, 2019 · 4 comments

Comments

@trevorsandy
Copy link
Owner

trevorsandy commented Mar 17, 2019

Subject

Add LEGO style CSI annotation formatting

Environment

Version of LPub3D - 2.3.7
Operating system - All

Solution

Assembly Globals Setup - Display, Annotation settings
Screenshot - 06_04_2019 , 07_23_16

Display Assembly (CSI) Part Annotation - enable or disable Fixed (Axles, Beams, Cables, Connectors, Hoses, or Panels) or Extended (Title, Free Form, or both) annotation display. Title and Free Form annotations uses the Extended style. The remaining styles are used by Fixed annotations. All annotation styles use one of three shape configurations - square, circle, or rectangle. Extended annotation styles use the Rectangle shape configuration. Axle and Panels use the Circle shape configuration and Beams, Cables, Connections, and Hoses uses the Square shape configuration

NOTE Assembly (CSI) part annotation display is ultimately controlled by the global PLI part display settings at Part List Globals Setup, Annotations, Options, Display Part List (PLI) Annotation
Screenshot - 06_04_2019 , 09_23_40

Part Annotation Default Placement - set the default annotation placement which can also be changed from the annotation context menu.

See #186 for additional details on part annotation configuration and setup.

The following steps present nominal assembly (CSI) annotation setup and execution flows:
Menu item
Screenshot - 06_04_2019 , 05_48_51

Default settings
Screenshot - 06_04_2019 , 05_49_41

Assembly part annotations
Screenshot - 06_04_2019 , 05_59_01

NOTE - CSI annotation position information is calculated and persisted to the model file using the CSI image dimensions. Once written, further model file loads will not automatically update the position information. If the image dimensions are subsequently updated, or the renderer is changed, the CSI annotation position may fall out of alignment with its respective part image.

The next steps illustrate this behaviour and the actions required to reload and realign the CSI part annotation (CSI part annotation position information manually changed to illustrate an out of alignment scenario):

CSI annotation and part image out of alignment.
Screenshot - 06_04_2019 , 06_07_56

Toggle part outline context menu item
Screenshot - 06_04_2019 , 06_16_53

Part outline - - confirm annotation position is out of alignment
Screenshot - 06_04_2019 , 06_17_22

Reload Part Annotation context menu item - accessed from CSI image context menu
Screenshot - 06_04_2019 , 06_08_26

Realigned CSI part annotation
Screenshot - 06_04_2019 , 06_08_53

Part outline - confirm CSI part annotation position is well aligned
Screenshot - 06_04_2019 , 06_15_28

Change CSI Part annotation placement context menu - accessed from CSI part annotation
Screenshot - 06_04_2019 , 06_11_27

Placement dialogue - set CSI part annotation placement top/right (from bottom/left)
Screenshot - 06_04_2019 , 06_12_24

Repositioned CSI part annotation - top/right
Screenshot - 06_04_2019 , 06_14_18

NOTE: CSI annotations are also drag enabled so, in addition to using the placement dialogue, one can simply drag the annotation to the desired location.

@trevorsandy trevorsandy self-assigned this Mar 17, 2019
@trevorsandy trevorsandy added this to the 2.3.7 milestone Mar 18, 2019
trevorsandy added a commit that referenced this issue Mar 23, 2019
@jacovandermolen
Copy link

Any hints on how this works? I cannot figure it out, sorry.

@jacovandermolen
Copy link

jacovandermolen commented Mar 28, 2019

Never mind, I think I found it. However, it does not seem to work :-(
Is it at Parts List Globals Setup > Annotations > Options > Edit Styles
Metacommands are added, but nothing seems to render?

0 !LPUB PLI ANNOTATION DISPLAY GLOBAL TRUE
0 !LPUB PLI SQUARE_STYLE BACKGROUND GLOBAL COLOR "#aaffff"

I expect a blue square around the annotation?
Changing the font (clicking the button) causes a crash.

@trevorsandy
Copy link
Owner Author

Jaco,

I've added some content to the initial ticket post that describes this enhancement setup and execution. Also take a look at #222 to see the annotation update after v2.3.7 release.

Cheers,

@jacovandermolen
Copy link

Thanks so much. That helps ;-)
I will try to implement in the manual ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants