Gregi
Member-
Posts
65 -
Joined
-
Last visited
Reputation
17 GoodPersonal Information
-
Location
Switzerland
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I did many tests with ResetObject and similar without succes. Now i got a workaround with exporting to symbol, so you can edit the symbol, and then there's another button to re-import the symbol which replaces the GetCustomObjectProfileGroup. It is not as Nice as i would like to have it, but right now it works.
-
Thanks for your inputs I guess my explanation was not exact 😉 I would like to make it possible to edit the drawing by users. So like "edit Symbol" or "edit group", where VW shows the drawing with the yellow frame, where you have to exit the drawing by clicking "exit..." I'm able to do so as long as i hit the button on the instance (not within the "edit style" window) - but after exit i have to re-open the document to see any of my PIO...
-
Difference between vsoGetPluginStyleSym and GetPluginStyleSymbol
Gregi replied to Gregi's topic in Python Scripting
Hi @MullinRJ Thank you for your reply. For sure, i did a lot of trying of those two functions 🙂 I put both of them in my script and comment / uncomment. But the vs.vsoGetPluginStyleSym() is always crashing VW. I was wondering, why vs.GetPluginStyleSymbol needs two inputs (in the function reference it says: vs.GetPluginStyleSymbol(hObject, hSymDef)) but it works in this way: bisStyled, StyleSym = vs.GetPluginStyleSymbol(gPio_H, None) #Prüfen, ob PluginObjekt Stilgesteuert ist It is hard to get any information about some functions, especially in combination with event-based PIOs. Probably the "vso"-Function is only meant to work in a special event-case? Gregi -
Yes, this is exactly what I'm doing. But i struggle in editing my Profile Group. Which handle, or which function, would you recommend to edit my object? (instead of EditObjectSpecial)
-
I'm struggling with integrate a drawing into my styled PIO. My PIO is using this drawing as the basis to create the object. So this drawing should be a "parameter", invisible in the end, but not deleted. If I could have a look how it works with the title block as an example, this would maybe be a lot of help 🙂 On my way to look for a solution i created a 2D-path-object, so the profile group is my "base". The PIO is working good, but there are (at least) two things not working: to edit the profilegroup i created a button. It works, but after i left the "edit group", i have to close and re-open the document to see any of my PIO #Konstanten Event kParametricRecalculate = 3 kOnObjPref = 4 kObjOnInitXProperties = 5 kObjOnDoubleClick = 7 kObjOnObjectUIButtonHit = 35 kObjOnWidgetPrep = 41 kObjOnEditPluginStyle = 60 kObjCreatePluginStyle = 61 kObjUpdatePluginStyleObject = 62 kObjFinalizeCreateStyle = 63 kObjFinalizeUpdateStyledObject = 64 kObjStyleWidgetChosen = 65 nachAbschlussStilbearbeiten = 81 # 70? # 82? # 85? ButtonIDObjektBearbeiten = 1234 (theEvent, theButton) = vs.vsoGetEventInfo() (ok, gPio_N, gPio_H, gPioRec_H, gWall_H) = vs.GetCustomObjectInfo() if theEvent == kObjOnInitXProperties: #5 ok = vs.vsoAppendWidget(kWidgetButton, ButtonIDObjektBearbeiten, 'Objekt bearbeiten...', 0) #Button hinzufügen vs.SetObjPropCharVS(kObjXPropEditGroup, vs.Chr(kObjXPropEditGroupProfile)) #mit Knopf wird direkt Profilgruppe bearbeitet if theEvent == kObjOnObjectUIButtonHit: #35 if theButton == ButtonIDObjektBearbeiten: vs.EditObjectSpecial(gPio_H, 4) the button only works to edit my profile-group "by instance". I could not find a way to edit the group within the style OIP. Even if i would find a way to edit the instance-group an then move the drawing into the style (by script), there would be no way to do so by right-click the red-symbol in the resource manager what am i missing? is there any documentation? or a way to get the source-code of any "scripts by vectorworks" which are not in sdk?
-
Hello I'm working on a PIO with Styles. The PIO is a path object, so there's a profile and a path-group. If i would like to get the profile group "by style", i need a way to change the profile in the symdef - but how? I think it has to be done with one of those functions, but what's the difference between those two? def vs.vsoGetPluginStyleSym(): return hSymDef def vs.GetPluginStyleSymbol(hObject, hSymDef): return (BOOLEAN, hSymDef)
-
I had some trouble in trying this, but id didnt work. maybe come back to this point later in my project. But as long as it works this way, im happy with it 😉
-
Hello everybody So, almost a year has gone... so I got the "Style" thing a little bit of working, but not in the way i would like to. To have my Button in OIP AND in plugin-style-dialog is ok, i managed to do so How do I manage to have a pick-box to this button (better: the drawing behind it) in the settings? (screenshot) which way would you recommend to have a drawing object inside my PIO? I started with an 2d Path Object, to have the profile-Group for this. The Button just handles to "Edit Profile-Group" If i set the parameters "by style" the fields in OIP are grey (like expected), but on doubleclick i get the handles and if i edit the form, i can change those parameters by instance. to bring them back to "style" i have to open "edit style" an close. do i have to include an override in my code, like "if this param is set by style, copy param from style-sym-def"...? is there any "good" list of event constants anywhere (Appendix or similar)? it is a lot of work to search "all" the stuff about event handling, but it sounds really interesting to work with those things
-
hello everybody this is really helpful. I'm trying to create my own styled PIO. It works kind of good, but there's one thing i still don't get: I would like to "implement" an Object in the style, like the profile of my 2D-Profile-Object. Is there a Way to "easy" Add a Buton on the "kEditPluginStyleDefault" thing? I tried "AddToPluginStyle" and/or "AddToPIOStyleEdit" with no succes - but i don't know in which part of Event-Trigger i would have to pack anything i couldn't get any information about how drawn objects can be a part of a style, maybe @_c_ does have any idea because of the great things from vectorlab? 🙂
-
Haha great! funny video, thanks a lot 🤣
-
I guess you could create any master-object which is connectet to a database an name it. in your marionette you get this object by name an gets its database entrys. If your master-object is a symbol with symbol-text you have a "Master-Table" or something like that.
-
I'm really thankfull to this post! I'm doing a lot of try and error, but it works pretty fine! 🙂 I guess, a simple open and close the Editing-Window in the PlugIn Manager is working as well..
-
Is there a way to replace the code inside a Marionette node? I have a lot of self-made nodes and they are used in several Marionette-Objects. Now, I made some changes ("updates") and would like the put them to all those nodes. Any other way instead of open the Objects and replace the code manually would be great... Great thank to any idea 🙂
-
i do have the same problem. I have a lot of Marionette-Objects, saved as red symbols. Since I installed VW2021 i have a huge load of issues and VW crashes. If i want to reconstruct this, VW2020 crashes to. demotivating any idea? some changes in python?
-
Is there any way to create a function like "SectionSolid" in the function reference to do what i like? Who is able to implement those functions? or is it already there but just not on the reference page?