Search the Community
Showing results for tags 'plug-in object'.
-
I'm working on a plug-in that generates a lot of bitmaps from symbols. To make it more user friendly i'm using the previously generated bitmaps in the PIO as a cache, I do this by setting kObjXPropPreserveContents to True and only delete out-of-date objects at redraw. I tried using ForEachObjectInList starting at the PIO handle with deep traversal and start ignoring the callbacks once an object which does not have the PIO as parent. The problem with this method is that once my object is not the front most object in the document the ignored callbacks start stacking up, the more backward the PIO placement is the more processing time the plug-in needs. I'm now resorting to FInSymDef and NextObj, but NextObj never goes to None... so it feels like this is not the definitive method for what I need. Is there any other way to loop over ONLY the items in the group of the PIO that is really scoped to the PIO? And without having to check the parent of each of the looped objects 😉 [edit for more clarity] With kind regards, Jord Visser
- 2 replies
-
- 2020
- vectorworks 2020
-
(and 1 more)
Tagged with:
-
Hi all, Unfortunately I didn't go far with my idea to make a new plug-in object. I needed totally simple 2d symbol for a door in which thickness of door frame could be changed. Then I realized that maybe door size could be customizable. I have a task to redraw old scanned plans and most of the doors are 90cm but wall thicknesses differ. I used to make a dynamic block in Autocad and it would take 10 minutes to do it, but VW process of doing something like that left me speechless. Do I really have to master Python to do it? Other option is to make 10 different symbols and insert them as necessary, but somehow i considered that move quite retrograde. So, to cut the standard lament over the functionality of Autocad and improvisation skills that VW requires, does someone have 2D door plug-in symbol to share. There was one on VectorDepo site but link is not working... Thanks Jan