Jump to content
Sign in to follow this  
Kool Aid

Viewport name (eg. for symbols)

Recommended Posts

Since objects in a viewport (annotation) are not on any layer, it seems that the only way to get them reported is to have a data record which is populated by a command.

PROCEDURE ViewPortName; { ? Petri Sakkinen 2009 } 

PROCEDURE GetIt (h : HANDLE);
VAR theViewport : HANDLE; vpName : STRING; 
BEGIN
theViewport := GETVPGROUPPARENT(GETPARENT(h));  
vpName := GETNAME(theViewport); 
MESSAGE(vpName); 
END;

BEGIN
FOREACHOBJECT(GetIt, (INVIEWPORT & (S='Your symbol'))); 
END; 

RUN(ViewPortName); 

Luckily my frustrated user I referred to elsewhere already has a record for revision data, so she only needed to add a field for the layer/viewport.

Instead of messaging, the real thing writes the vpName to this ?Location? field.

As a solution: satisfactory; as a need: nonsense! (Or whatever expression Nero Wolfe might use. Phooey?)

Edited by Kool Aid

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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.

×