Menu

Highlight based on LPUB command instead of application setting

Simone
2019-04-16
2019-04-18
  • Simone

    Simone - 2019-04-16

    hello Trevor. I use LDview as rendering engine. Is it possible to enable or disable highlight parts feature via an LPUB command so I can customize each project instead of enabling or disabling it for all with the LPub3D setting?

    Thanks
    Regards.

    Simon

     
  • Cameron Miller

    Cameron Miller - 2019-04-17

    I second this!

     
  • Trevor Sandy

    Trevor Sandy - 2019-04-17

    Simon, Meta commands are in place for the Highlight Current Step feature.

     0 !LPUB HIGHLIGHT_STEP HIGHLIGHT
     0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_COLOR <"string">
     0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_LINE_WIDTH <"integer">
    

    Although this feature was intended for GLOBAL execution, nothing is in place to prevent its use at the LOCAL level. Let me know if the behaviour is not as expected.

    Cheers,

     
    • Simone

      Simone - 2019-04-17

      Hello Trevor, thanks for suggestion.
      Exactly, how should I use the commands?
      I tried to insert at the beginning of step 1 and the program crashes.

      0 FILE test.ldr
      0 Name: test.ldr
      0 !LPUB HIGHLIGHT_STEP HIGHLIGHT
      0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_COLOR "#ff0000"
      0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_LINE_WIDTH 3
      1 72 0 0 0 0 -1 0 0 0 -1 1 0 0 17114.dat
      1 71 -24 10 0 0 -1 0 0 0 -1 1 0 0 3023.dat
      0 ROTSTEP 35 45 0 ABS
      
       

      Last edit: Simone 2019-04-17
  • Trevor Sandy

    Trevor Sandy - 2019-04-17

    Hi Simon,

    Sorry, here are the complete meta commands.

    0 !LPUB HIGHLIGHT_STEP HIGHLIGHT <TRUE|FALSE>
    0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_COLOR <"string">
    0 !LPUB HIGHLIGHT_STEP HIGHLIGHT_LINE_WIDTH <integer>
    

    Do not use HIGHLIGHT_LINE_WIDTH at this moment, you will receive a "Parameter(s) out of range" error message because I did not initialize the data type so it is using the default '0'. If the line width meta is not defined, the Preferences (INI) default value (1) will be used. I've corrected this behaviour in 2.3.9.

    You can 'Save' a list of all metacommands to a file from the Help menu. Alternatively, you can access an up-to-date list here

    Cheers,

     
  • Trevor Sandy

    Trevor Sandy - 2019-04-17

    I ran a little test with one of your previous examples. The behaviour was as expected.

    Highlight Step Meta Command

    Cheers,

     
  • Simone

    Simone - 2019-04-18

    Perfect Trevor! Thanks for suggestion.
    I found that page but i also not read, after "HIGHLIGHT_STEP" the boolean option TRUE|FALSE.
    Well I take this opportunity to ask you a question about that command list: i suppose you know every command and what they do right? But does exist a documentations for commands we do not know? A lot of those commands are easy to understand and LPub3d can insert with a GUI command like "display callout as row", but for some commands, usage is not so clear like

    0 !LPUB CALLOUT SUBMODEL_DISPLAY SHOW <TRUE|FALSE>
    

    FOr example, wha is the difference between CALLOUT or SUBMODEL?

    etc.

    Thanks
    Regards

     
  • Trevor Sandy

    Trevor Sandy - 2019-04-18

    Hi Simon - The command enables/disables the display of a submodel at its first step when the submodel is called out.

    Indeed, the online metacommand list was truncated at the first occurrence of reserved character "<" when I converted it to html. I corrected this error before making the post suggesting its use. It is now up-to-date.

    Cheers,

     
    • Simone

      Simone - 2019-04-18

      oh well..so after all, I wasn't so distracted :-D
      About SUBMODEL command you mean something like the white box before step 1 in the attached image?
      Thanks

       
  • Trevor Sandy

    Trevor Sandy - 2019-04-18

    Yes.

    BTW, I have added a Preference flag to highlight the first step. See ticket #234.

    Cheers,

     
    • Simone

      Simone - 2019-04-18

      Usefull thanks ;-)

      About SUBMODEL i start a new thread. I do that with a workaround but i would like to understand how SUBMODEL command works, because now it not works :-(

      Cheers

       

Log in to post a comment.

MongoDB Logo MongoDB