Jump to content

Problem with VW2022 Attribute Criteria Loc and Walls


WhoCanDo

Recommended Posts

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 ?

 

image.png.c6a5c03254a8b77c250f17a8cf716a63.png

 

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);

 

Link to comment

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

Link to comment

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.

 

image.png.1f5b7953cd88622c453193e00a393859.png

 

Raymond

Edited by MullinRJ
  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...