
ThomasE
Member-
Posts
22 -
Joined
-
Last visited
Reputation
1 NeutralPersonal Information
-
Location
Switzerland
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
How can I make a Node in Marionette with a Script ? Here is the Scipt. hTür = vs.WSScript_GetObject() #Datenbank Tür record = 'Door CW' fieldname = 'Space1UUID' #Datenbank Raum recordRaum = 'Space' fieldnamesRaum = ['11_Building','11_Floor','11_Room ID','11_Number'] dataRaum = [] #UUID von Raumnummer 1 auslesen UUID = vs.GetRField(hTür, record, fieldname) hRaum = vs.GetObjectByUuid(UUID) #Die Felder Gebäude, Stockwerk, Wohnungsnummer und Raumnummer auslesen for field in fieldnamesRaum: data = vs.GetRField(hRaum, recordRaum, field) dataRaum.append(data) #Die Felder Gebäude, Stockwerk, Wohnungsnummer und Raumnummer zusammensetzten raumnummerTür = dataRaum[0] +'.' + dataRaum[1] + dataRaum[2] + '.' + dataRaum[3] #Resultat zurückgeben vs.WSScript_SetResStr(raumnummerTür) My new Friend ChatGPT tried to help me, but it doesn't work 😃 #COMMAND;READONLYREFFILE;[VWLibDef]/Records & IFC\Get Record Field.py; #Created by [Your Name] on [Date] @Marionette.NodeDefinition class Params(metaclass=Marionette.OrderedClass): # APPEARANCE this = Marionette.Node("Get Room Number from Door") this.SetDescription('Returns the room number associated with a door.') # Input Ports inDoor = Marionette.PortIn(vs.Handle(0), 'hDoor') inDoor.SetDescription("The input door object") # Output Ports roomNumber = Marionette.PortOut('sRoomNumber') roomNumber.SetDescription("The room number associated with the door") success = Marionette.PortOut('bSuccess') success.SetDescription("True if operation was successful, false otherwise") # BEHAVIOR def RunNode(self): # Inputs hDoor = self.Params.inDoor.value # Database definitions recordDoor = 'Door CW' fieldUUID = 'Space1UUID' recordRoom = 'Space' fieldNamesRoom = ['11_Building', '11_Room ID', '11_Number'] # Initialize output values roomNumber = '' success = False # Get the UUID from the door UUID = vs.GetRField(hDoor, recordDoor, fieldUUID) if UUID: # Get the room object by UUID hRoom = vs.GetObjectByUuid(UUID) if hRoom: # Gather room data dataRoom = [] for field in fieldNamesRoom: data = vs.GetRField(hRoom, recordRoom, field) dataRoom.append(data) # Create room number string roomNumber = f"{dataRoom[0]}.{dataRoom[1]}.{dataRoom[2]}" success = True else: vs.AlrtDialog("Room not found for UUID: " + UUID) else: vs.AlrtDialog("UUID not found for the door.") # Outputs self.Params.roomNumber.value = roomNumber self.Params.success.value = success can someone help me ? I want to record the Roomnumber in a Database, so can i export the number with the Door in my IFC.... Best regards
-
Hi Marissa.
I need your Help for my Marionette Wrap.
I'm trying to create a simple object to calculate the area of spaces by type, but I'm missing something, and I don't have the knowledge to figure out what the issue is.
Could you maybe help me ?
Thanks in advance.
Regards,
Thomas
-
nobody ?
- 10 replies
-
- marionette
- ifc
-
(and 3 more)
Tagged with:
-
Hello everybody.... I'm trying to do a script in marionette, that only shows a part of the value. For Example, i want to do a combination of 2 values. Number: 04 Story name: 01OG my Goal: 01(OG)+04 = 0104 I need to keep the only 2 number (01) of my value (01OG) something like the Vectorworks Formula by the output mapping : LEFT([...],2) Someone has an idea ? Thanks
- 10 replies
-
- marionette
- ifc
-
(and 3 more)
Tagged with:
-
Hello everybody, I try to do a mapping for my IFC, but it doesn't work. Can someone help me ? IF(([Style.Pset_DoorCommon_IsExternal] = 'TRUE'), 'E3.2', 'G1.4') Datenmanager (in German) Infobox Door Style Settings
-
😍 It's working !!! Thanks a lot ! Regards & Merci vielmals I definitely need to learn thy python language
-
hello DomC, Thank you for your quick reply, but I can't see any Image. Can you re-upload the image ? Thanks a lot
-
Hello, I'm here again. @Marissa Farrell @DomC I need your help. I have an Issue with the opening in the wall of doors. If I take the values of *Door CW*, the result is with e-01m or e00m as unit. If I split the unit from number, the information is lost. For example 9.2e-01m should be 0.92m 1.02e00m should be 1.02m In my marionette node, the result is 9.2 and 1.02 and not 0.92 and 1.02... How can I find a solution for that, or where can I find the opening height and lenght of the wall opening from a door ?
-
Hello everybody, Why is vectorworks 2019 working worse than the 2018. I tried more than 1 hour to figure out, why my section doen't look like like I want it. Why lines are missing by my door in VW19 ? ich check all Attributes bei the Walls and the Doors and I didn't find anything. Could someone helps me ? I don't want lined between two hatchings.... Best regards... Thomas Vectorworks 2018 Vectorworks 2019
-
Hello everybody ! Perhaps someone can help me. How can I close a Wall with the "simple" representation ? See Pictures : A. Wallsettings : End of the wall : attributes from the shell B. Wallsettings : End of the wall : attributes from the wall. A. Complicated representation: The Attibutes are OK (Concrete 0.50) B. Simple representation: the Attributes are OK (Withe 0.25) How can I have a good solution ? or how can I close the wall by the simple representation + End of the wall : attributes from the shell Thank you for your help
-
Hello, If I do a section in the middle of the building, the hatch doesn't merge. If it's outside, it works.... und that issue appeared only in VW 2019, it worked in VW 2018 !!! Cheers, Thomas
-
Hello, I have a lot of Wraps I have to run before I export my IFC File. (about 25 Scripts) - Is is possible to make a "Mother Wrap" who runs all the wraps in a specific order ? Best regards,
-
sorry I found the "Float" node... Thanks again for your Help !!
-
Thank you for your quick reply and how do you convert String to Numbers ? so could I use the div node... I need the 0.25 instead of 2.5e-01m or 2.5
-
it's me again, 😃 How can I create a node with object.OA Height Shaft Depth Shaft Width ?? Thanks a lot