WhoCanDo Posted February 26, 2022 Share Posted February 26, 2022 Hi, I've been using this abridged macro for years. However, it doesn't seem to work with VW2022. Can anyone suggest why all the objects within the large polygon will accept the attachment of MyRecord (change this name as required), except the Wall object ? procedure Fetch; var hFSA : handle; procedure Test (h : handle); begin SetRecord (h, 'MyRecord'); end; begin DelName ('Tmp'); hFSA := FSActLayer; SetName (hFSA, 'Tmp'); ForEachObject (Test, (Loc = 'Tmp')); end; run (Fetch); Quote Link to comment
MullinRJ Posted February 26, 2022 Share Posted February 26, 2022 It seems to be working on my VW 2022. When I first select the wall after the script is run, the OIP Data pane has the <Default IfcWallStandateCase> record format selected. If I change the record selection to "MyRecord> (with the wall selected) I see the proper fields show up below. Is this what you are seeing? Raymond Quote Link to comment
WhoCanDo Posted February 26, 2022 Author Share Posted February 26, 2022 Hi Raymond, Are you saying that after the script is run, that all objects except the large polygon have the MyRecord attached without additional interaction ? I only see this attached to the wall object on a Windows PC. Quote Link to comment
MullinRJ Posted February 26, 2022 Share Posted February 26, 2022 (edited) Yes, all objects inside the outer rectangle have the record attached, using a Mac. I select the outer rectangle and run your script. When I select the wall object, I see this in the OIP. When I first click on the wall, the IFC record is selected, but when I click on the "Format-1" record above it I see the field "fld" at the bottom with dummy data "abc", so the record is definitely attached. Raymond Edited February 26, 2022 by MullinRJ 1 Quote Link to comment
WhoCanDo Posted February 27, 2022 Author Share Posted February 27, 2022 Thanks Raymond, Since I can export the VW2022 file to VW2021, and it works in VW2021, then I shall have to report this as a bug on the Windows platform. Thanks for your help. 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.