Tbai Posted January 6, 2021 Share Posted January 6, 2021 Hi Marionette geniuses! I wonder if there's an opposite node for or a way to workaround to untick/remove IFC entities that were previously attached to objects. Data Manager has been really helpful attach/manage new IFC data, but when I tried to remove any unwanted entity/data in Data Manager, they still remain in the Data tab in OIP. Only gave me the option to manually untick them in the OIP if this makes sense. I was hoping it can automatically unactivate removed entities...Data Manager is still under developing from what i read, hopefully this will get improved! I've checked the collection of various nodes shared by AlanW and tried searching across the forum, but got no luck. If it already exists, could you redirect me to the post please? Thanks in advance! Quote Link to comment
Gregi Posted January 9, 2021 Share Posted January 9, 2021 Is this what you are looking for? I do not work with the IFC-Data-thing, but think it should work. 2021-01-09_Del IFC Entity_gim.vwx Quote Link to comment
Tbai Posted January 9, 2021 Author Share Posted January 9, 2021 Hi @Gregi ! Thank you for creating this node! I gave it a test. It works perfectly to delete ALL IFC data attached to any objects. It's good to have this node too, but maybe I mis-interpreted what I'm looking for here...Each object got IFC data attached shows this nest of info/data below: The node you created ended up removing the entire IFC Data Set (tbh, the naming system is so confusing🤦♂️. The IFC Data Set and the first line IFC Entity (Property Set) both called the same...? not sure if I got it correct here) I'm looking for a node to remove or untick only 'ONE line' of IFC Entity/ Property Set (equivalent to a record? For example, to untick the line 'Classification' with all other still remain the same) Something like the opposite of the 'Set IFC Property' node maybe...? I guess the sIFCPropValue part would be redundant. Again, thanks for any help in advance! Quote Link to comment
Gregi Posted January 13, 2021 Share Posted January 13, 2021 (edited) Hi @Tbai I think this is what you need? In my test it returns true, if the PSet was connectet and false, if it wasn't 2021-01-13_Del IFC Property Set_gim.vwx Edited January 13, 2021 by Gregi 1 Quote Link to comment
Tbai Posted January 19, 2021 Author Share Posted January 19, 2021 Hey @Gregi, Thanks again for looking into this. Just had time to test it out. You were correct. Once I removed the propoerty set away from the pre-set data manager, it works like a charm! Much appreciated! Quote Link to comment
snoorz Posted May 16, 2023 Share Posted May 16, 2023 old thread, new (old) user... I am trying get this to work, but is it somehow possible to just change the ifcEntity of objects, but not remove/replace everything ? Example, I have 100 imported Objects ("ifcBuildingElementProxy") on a Layer or class, they already have100 individual data inputs for "Name" and "Description" filled in. (But they don`t have individual "Vectorworks - Object Names" (where you can set the name of an object, bottom of Data window)) The above Marionette works to remove/assign a new entity, but all data fields (previous info "Name" and "Description" etc.) are wiped out. I would want to select all the 100 objects, change their ifcEntity to something else but keep the existing "Name" and "Description" data. (I also tried the Data-Manager to no avail) Thanks for looking... Quote Link to comment
Pat Stanford Posted May 18, 2023 Share Posted May 18, 2023 @shorter Can you comment on changing IFC Entities and keeping the data? Quote Link to comment
snoorz Posted May 19, 2023 Share Posted May 19, 2023 Some progress made: I just needed to add Get IFC Property nodes upfront to get the already given values from initial hobj, and feed them through to Set IFC Property again, after changing Set IFC Entity of hobj. This works. Question now is: say I have 100 "ifcBuildingElementProxy" solids, I need to Filter the ones that have different strings (i.e. in Description: ValueX, ValueY, ValueZ) So how can I add a second selection criteria (after IFC_ENTITY='IfcBuildingElementProxy'), that accesses ("IFCProperty") to make a successful "Objects by criteria" Script/Node ?: Script1 1.: import vs; vs.SelectObj("INSYMBOL & INVIEWPORT & (IFC_ENTITY='IfcBuildingElementProxy')"); I get all of these, fine. 2.: Of these selected now, how to get all the ones that have (i.e. in Description: ValueX, ValueY, ValueZ) and filter them out to use the above process on them. So I would get three lists (for XYZ) of objects to feed into the Marionette, and then convert them in one go. Use a Node, Script/VS/Python, or does this have to be a menu - item ? All I see in ..."by criteria" does not seem to be able to do this so far. Is there a way to add this ? Quote Link to comment
shorter Posted May 19, 2023 Share Posted May 19, 2023 when you say change their ifc entity, @snoorz, you means from IfcBuildingElementProxy to IfcSomethingElse? Quote Link to comment
snoorz Posted May 21, 2023 Share Posted May 21, 2023 (edited) Yes, the above script works for a single object now, question is how to batch process this; i.e. select objects with by similar object criteria, or IF/then: (when the file has 27x IfcBuildingElementProxy with Name A, 13x IfcBuildingeElementProxy with Description B, 54x IfcBuildingeElementProxy with Name C etc, see pic: Edited May 21, 2023 by snoorz typo Quote Link to comment
shorter Posted May 22, 2023 Share Posted May 22, 2023 Where have the errant objects come from? Quote Link to comment
snoorz Posted May 22, 2023 Share Posted May 22, 2023 No, just looking for a way to control imported 3D geometry, and add/keep information. (Maybe ifcWall is not a good example) Say you have imported IfcBuildingElementProxy geometry and want it to be "IfcVirtualElement", or "IfcVibrationIsolatorType", or whatever. Quote Link to comment
snoorz Posted June 11, 2023 Share Posted June 11, 2023 Is there a way to access these Parameters: i.e Name, Description, Object Type, Tag.... ? Quote Link to comment
snoorz Posted June 13, 2023 Share Posted June 13, 2023 Sorry, I had not realized that "Get IFC Property" already does this. Thank you. 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.