Jump to content
Sign in to follow this  
Vincent C

Hidden line enhancement

Recommended Posts

For lines to dissappear, the touching objects needs to be structural objects. So you'll need to use a floor object instead of a solid for the roof. or run the following script when you select the solids so they are read as structural objects by the program:

PROCEDURE ToStructuralObject;

VAR

selected : HANDLE;

PROCEDURE SetAsStructural(obj : HANDLE);

BEGIN

SetObjectVariableBoolean(obj, 702, TRUE);

END;

BEGIN

ForEachObject(SetAsStructural, SEL=TRUE & INOBJECT);

END;

Run(ToStructuralObject);

This will turn the selected objects into structural ones so that you don't see a line between them in hidden line renderings.

This is also usefull for many other things like kitchen counters, drain pipes, things you want to split over more than one floor, ...

For VS beginners:

1- copy the script to your clip board ie. cmd c

2- In VWs go to Tools>Scripts>Vectorscript Plug-in Editor

3- in the editor choose New>Command and give it a name of choice eg. Convert to Structural and click OK.

4- highlight your (new) command in the editor then click Script

5- Paste the script (from your clip board) cmd v in the dialog window and click Save and then OK to exit the Editor

6- Now go to your workspace and add the command (which now should have appeared among all the standard commands) to your workspace.

7- select the objects to be converted and run the command.

8- render hidden line...now the offending lines should have disappeared.

9- thank Dieter Geerts - DWorks for his time and energy.

Edited by Vincent C

Share this post


Link to post

For VS beginners:

1- copy the script to your clip board ie. cmd c

2- In VWs go to Tools>Scripts>Vectorscript Plug-in Editor

3- in the editor choose New>Command and give it a name of choice eg. Convert to Structural and click OK.

4- highlight your (new) command in the editor then click Script

5- Paste the script (from your clip board) cmd v in the dialog window and click Save and then OK to exit the Editor

6- Now go to your workspace and add the command (which now should have appeared among all the standard commands) to your workspace.

7- select the objects to be converted and run the command.

8- render hidden line...now the offending lines should have disappeared.

9- thank Dieter Geerts - DWorks for his time and energy.

You can always add scripts to the resource browser. That's where I keep scripts like these in. There fast and easy.

Share this post


Link to post
For lines to dissappear, the touching objects needs to be structural objects. So you'll need to use a floor object instead of a solid for the roof. or run the following script when you select the solids so they are read as structural objects by the program:

PROCEDURE ToStructuralObject;

VAR

selected : HANDLE;

PROCEDURE SetAsStructural(obj : HANDLE);

BEGIN

SetObjectVariableBoolean(obj, 702, TRUE);

END;

BEGIN

ForEachObject(SetAsStructural, SEL=TRUE & INOBJECT);

END;

Run(ToStructuralObject);

This will turn the selected objects into structural ones so that you don't see a line between them in hidden line renderings.

This is also usefull for many other things like kitchen counters, drain pipes, things you want to split over more than one floor, ...

And if you want to undo this, setting it ot non-structural, make another script, but instead of setting the var to TRUE, set it to FALSE.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...