Jump to content
Sign in to follow this  
Yancka

link the PIO with Sheet Layer

Recommended Posts

Is there a way to establish a link in PIO to Sheet Layer specified by mouse click, retrieve the name of SL, display the part of the name in PIO as a text and later, in case the SL gets renamed, to have the text in PIO updated too?

Share this post


Link to post

The pio would have to be reset somehow, either manually or by some other explicit method, because the pio normally does not get an event when a sheet layer is re-named.

Edited by Frank Brault

Share this post


Link to post

Idea for resetting would be a menu command like:

PROCEDURE ResetPIOs;
VAR
Criteria :STRING;
PROCEDURE ResetMyPIOs(h :HANDLE);
BEGIN
ResetObject(h);
END;

BEGIN
Criteria:=ConCat('(INSYMBOL & INOBJECT  & (PON=',Chr(39),'Name Of My Custom PIO',Chr(39),'))');
ForEachObject(ResetMyPIOs, Criteria);
END;
RUN(ResetPIOs);

What's the way you can make a link from PIO to any object? My case - to Sheet Layer, other case might be to SL Viewport?

Share this post


Link to post

By mouse click:

FUNCTION PickObject(pX,pY:REAL): HANDLE;

PROCEDURE ForEachObjectAtPoint(actionFunc:PROCEDURE; objOptions:INTEGER; travOptions:INTEGER; locX,locY:REAL; pickRadius:REAL);

By name:

FUNCTION GetObject(name:STRING): HANDLE;

Share this post


Link to post
...the pio normally does not get an event when a sheet layer is re-named.

Umm, and is there some "non-normal" way to deal with PIOs and make them event sensitive?

Share this post


Link to post

A PIO cannot get events from other objects. Only certain events within the PIO can be called.

Rather than renaming directly, you can write a script that will rename the SL and also update the affected PIOs

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...