Skip to main content
Question

convert ifc to dae


rva1
Contributor
Forum|alt.badge.img+1
  • Contributor

Hi there! hope someone can help.

I'm trying to convert IFC into DAE, but having trouble getting the IFC Global ID into the DAE Name and ID properties.

Any suggestions?

cheers,

ronald

 

11 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

You can use the GeometryPropertySetter to set the Geometry Name, I'm not sure about the ID though.


rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 8, 2020
virtualcitymatt wrote:

You can use the GeometryPropertySetter to set the Geometry Name, I'm not sure about the ID though.

ahh great, perhaps this does the trick... lets try


rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 8, 2020
virtualcitymatt wrote:

You can use the GeometryPropertySetter to set the Geometry Name, I'm not sure about the ID though.

Perhaps there is a way to rename "Name" into "ID"... than I could first set Name, than rename to ID and then set Name again...


rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 8, 2020
virtualcitymatt wrote:

You can use the GeometryPropertySetter to set the Geometry Name, I'm not sure about the ID though.

Seems like I need the ID to make the conversion work. So any suggestions are more then welcome;)


rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 9, 2020

Í'm trying to replicate left dae file

(1) this dae file has id and type property

(2) dae created by fme doesn't

 

Perhaps there is a way to first create dae and then edit this xml file in seperate workspace?


redgeographics
Celebrity
Forum|alt.badge.img+49
rva1 wrote:

Í'm trying to replicate left dae file

(1) this dae file has id and type property

(2) dae created by fme doesn't

 

Perhaps there is a way to first create dae and then edit this xml file in seperate workspace?

You could try reading the .dae file after writing and then change that tag. I think there's 2 options:

  • Read it as a text file (set it to read the whole file at once) and then use regexes in a StringReplacer
  • Read it as an XML file and use an XMLXQueryUpdater

virtualcitymatt
Celebrity
Forum|alt.badge.img+35
rva1 wrote:

Í'm trying to replicate left dae file

(1) this dae file has id and type property

(2) dae created by fme doesn't

 

Perhaps there is a way to first create dae and then edit this xml file in seperate workspace?

Thanks for the screen shot. This is great to see.

 

Seems the example in the spec actually used 'id' as the example

 

https://www.khronos.org/files/collada_spec_1_4.pdf - page 20. Perhaps you should create an idea to have this supported.

rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 9, 2020
virtualcitymatt wrote:

Thanks for the screen shot. This is great to see.

 

Seems the example in the spec actually used 'id' as the example

 

https://www.khronos.org/files/collada_spec_1_4.pdf - page 20. Perhaps you should create an idea to have this supported.

yes. I need id to get the dae converted to gltf...

i did a workaround by the way with a simple text editor

i opened the dae as text and then changed the lines that contained name property. Then wrote it back to dae... That did the trick, but was quick and dirty... perhaps there is another way;)


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
rva1 wrote:

yes. I need id to get the dae converted to gltf...

i did a workaround by the way with a simple text editor

i opened the dae as text and then changed the lines that contained name property. Then wrote it back to dae... That did the trick, but was quick and dirty... perhaps there is another way;)

You know FME has a gltf writer right?


rva1
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 9, 2020
virtualcitymatt wrote:

You know FME has a gltf writer right?

yes i know... couldn't get that one working though;( So i'm using a commandline converter for that to convert collada to gltf. Next step will be converting ifc to gltf directly in fme.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
rva1 wrote:

yes i know... couldn't get that one working though;( So i'm using a commandline converter for that to convert collada to gltf. Next step will be converting ifc to gltf directly in fme.

Not working? as in the writer failed?

 

My advice would be to set the write to write out a single glb binary - version 2.0

 

 

But I think you can control the globalID or anything else - it's just straight up geometry.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings