Jump to content
Developer Wiki and Function Reference Links ×

GetPluginInfo something or other


Ken

Recommended Posts

I don't dive into VS too often. Now I'm thinking of creating a script that can somehow place a textblock on the floor plan that reflects a PIO window's overall width and height. Click on PIO then click on spot to place text block something or other.

Is GetPluginInfo the proper call function to build this around?

(Isn't there already some third party add-on that does this?)

Link to comment

No, GetPluginInfo is used inside of the PIO to find out information about itself.

It sounds like you want to get information about a PIO that has already been placed in the drawing.

To do this you need to get a handle to the object (either by selection of by something like GetPickObject). Then check to make sure it has a Window record (meaning it is a Window PIO). Then read the data from that record and create a text object.

If you want to actually like the two objects so that when you change the window the hight/width automatically update, you will need to do a lot more work.

Link to comment

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.

×
×
  • Create New...