Jump to content
Developer Wiki and Function Reference Links ×

create ifc beam


Pi_

Recommended Posts

Hi,

I'm working on a 3dpolyline PIO to draw steelmembers. I want to attach the right ifc data so I can export it to Scia engineer. (ifc export of VW 'dakonderdeel', I think it is called framing member in the english version, works good...).

I'm able to make a Ifcbeam

(ok:=IFC_SetIFCEntity(pioHandle, 'Ifcbeam');)

but I can't fill in the ifc properties (Ifcbeam type, name, ...)

ok:=IFC_SetEntityProp(pioHandle, 'IfcBeam.Name','piet');

doesn't work.

any ideas?

Link to comment

This is how I do it:

{ ADD IFC TAG (check for excisting one first)}

Result:=IFC_GetIFCEntity(ObjHd,OutStrName);

IF (Not Result) OR (OutStrName<>inStrIfcName) THEN BEGIN

Result:=IFC_ClearIFCInfo(ObjHd);

Result:=IFC_SetIFCEntity(ObjHd,inStrIfcName);

Result:=IFC_AttachPSet(ObjHd,inStrPsetName);

Result:=IFC_SetEntityProp(ObjHd,'Name',ObjName);

END;

Also note that most of the tags do not work on export. at least in vw 2013

Link to comment

hi Wouter,

thanks again for responding, but I'm not getting any wiser.

in the ifc entity 'IfcBeam' you have several properties

GlobalId/ Description /ObjectType/...

if you want to acces them in a spreadsheet you use:

=GETIFCPROPERTY('IfcBeam.Name')

I want to fill in this data using something like this:

ok:=IFC_ClearIFCInfo(pioHandle);

ok:=IFC_SetIFCEntity(pioHandle, 'IfcBeam');

ok:=IFC_AttachPSet(pioHandle, 'IfcBeam.Name');

ok:=IFC_SetEntityProp(pioHandle, 'IfcBeam.Name','piet');

but nothing happens...

If you are used to work with IFC can you just explain how to fill in for example IfcBeam.Name?

Link to comment

Now I succeeded to fill in the material tag but not I'm still having trouble with the IFCbeam properties (fill in ifcbeam.name is not working...)

ok:=IFC_ClearIFCInfo(pioHandle);

ok:=IFC_SetIFCEntity(pioHandle, 'IfcBeam');

ok:=IFC_AttachPSet(pioHandle, 'IfcBeam');

ok:=IFC_SetPsetProp(pioHandle, 'IfcBeam', 'Name','piet');

ok:=IFC_SetPsetProp(pioHandle, 'IfcBeam', 'Description','piet');

>>>not working

ok:=IFC_AttachPSet(pioHandle, 'Material');

ok:=IFC_SetPsetProp(pioHandle, 'Material', 'Component 1','staal');

>>> working

Link to comment

I learned that the best way to export an IFC-beam is to just label it as ifc-beam! (you don't have to fill in any other parameters) It works fine with extrusions but not in a PIO.

When you put an extrusion inside a PIO and label it as ifc-beam it is not recognized in other aplications. When you ungroup the PIO, the ifc-beam is recognized...

Is there anyone who can help me?

Link to comment
I learned that the best way to export an IFC-beam is to just label it as ifc-beam! (you don't have to fill in any other parameters) It works fine with extrusions but not in a PIO.

When you put an extrusion inside a PIO and label it as ifc-beam it is not recognized in other aplications. When you ungroup the PIO, the ifc-beam is recognized...

Is there anyone who can help me?

Are you assigning the IFC tags to an object INSIDE your pio or the pio itself ? This might be the issue.

Link to comment

I got something working by setting an 'IfcElementAssembly' label to the PIO (3d poly) and an IfcBeam label to the extrusions inside the PIO. This works fine but I need one extra thing:

I want to label the profile (2d poly used for extrusion) as a 'IfcIShapeProfileDef'

This means that in other programs a HEA100-beam will still be a HEA100-beam and not a beam with 'grafical' geometrie attached to it. With 'IfcIShapeProfileDef' you have a beam with width, depth, webthickness,...

BTW I got an answer of design express (destributor in benelux) on how to fill in the IFCbeam parameters:

ok:=IFC_SetIFCEntity(pioHandle, 'IfcBeam');

ok:=IFC_SetEntityProp(pioHandle,'Name','Piet');

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...