DCarpenter Posted March 5, 2020 Share Posted March 5, 2020 So I've created a simple script that duplicates a selected symbol from a pop-up window. I've also added an event script that changes the "Distance" parameter based on the symbol selected. Developer mode is 'off', but I don't understand why when the PIO is executed that it creates a second set of symbols outside of the PIO. That second set of symbols are always in the exact same location in every drawing, regardless of where the PIO is. I've attached a screen shot if it's helpful. Any ideas why? Quote Link to comment
Julian Carr Posted March 5, 2020 Share Posted March 5, 2020 The duplicates are likely being placed relative to the internal origin.. Try making sure the symbols are being inserted in Event = 3. Otherwise they can be outside the PIO container. Quote Link to comment
DCarpenter Posted March 5, 2020 Author Share Posted March 5, 2020 (edited) wow, that would make sense. This is my first time creating an event enabled script. Do I have to move entire script into Event 3? Is this a general rule of thumb when working with event enabled scripts? Edited March 5, 2020 by DCarpenter Quote Link to comment
Julian Carr Posted March 5, 2020 Share Posted March 5, 2020 Yes once a PIO is event enabled, then everything must be dealt with in the correct event. I'm pretty sure there are some sample event based PIOs floating around or in the SDK. Quote Link to comment
DCarpenter Posted March 5, 2020 Author Share Posted March 5, 2020 ok, thanks. Yes, I found a really great script someone posted a few years ago that really help. Thank you. Quote Link to comment
Hippocode Posted March 6, 2020 Share Posted March 6, 2020 If they are also "outside" the container of your PIO, so not part of it, you need to attach them to the PIO's container after duplication. Quote Link to comment
Recommended Posts
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.