Hide construction lines

Next
 From:  TOM (SIRTOM)
8459.1 
Hi,

I did several searches but without success so here my question :

How can I hide my current set of construction lines (and makem them visible again ?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8459.2 In reply to 8459.1 
Hi Tom,

re:
> How can I hide my current set of construction lines (and makem them visible again ?

Try putting the following script on a shortcut key:

script: /* Hide/show construction lines */ var clines = moi.geometryDatabase.getObjects().getConstructionLines(); if ( clines.length > 0 ) { clines.setProperty( 'hidden', !clines.item(0).hidden ); }

That should then toggle hide/show of all construction lines when you trigger it.

- Michael

EDITED: 8 Jun 2017 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8459.3 In reply to 8459.2 
Fantastic - thanks, Michael !

Enjoying your superb Swiss knife of 3D more than ever - TOM
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8459.4 
Did someone else apply it - seems not to work for me.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8459.5 In reply to 8459.4 
Hi Tom, I tested it over here on some temporary construction lines that I created while in the Line command. Is it behaving differently for you with non-temporary construction lines possibly?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  shayno
8459.6 
Useful scripts are

Keep construction line , run after line is generated

script:moi.geometryDatabase.getObjects().getConstructionLines().setProperty( "isTemporary", false );

Remove all construction lines

script:var gd = moi.geometryDatabase; gd.removeObjects( gd.getObjects().getConstructionLines() );

Cheers
shayne
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
8459.7 In reply to 8459.5 
There exists a line break when you copy and paste michaels script. I remember that with some systems and workflows, that can cause an issue.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8459.8 In reply to 8459.7 
Thanks for catching that Burr!

@Tom - try it again since I removed that line break that got in there somehow.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  TOM (SIRTOM)
8459.9 
Thank you for the tips, shaynuĆ³ !

Michael, Burrman - yes, now it works properly, happy for this further step
to the ultimately smooth workflow ;-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All