Skip to main content
Solved

How can I access OBJ Group and and Object traits?


Forum|alt.badge.img

I'm pretty new to FME and could really use some help on this. I am reading OBJ files and writing DWG files.

I need to expose two "traits" in the source OBJ to re-use them in the target DWG. But I'm unclear how to access the traits.

What I found so far... The two traits in the OBJ file belong to Geometry Type: IFMEMesh. The traits are GeometryTrait(string): 'obj_group' and 'obj_object'.

My goal is to read the obj_group to write autocad_layer_name - and read the obj_object to write autocad_block_name.

Guidance on accessing the traits will be greatly appreciated!

 

And here's an example OBJ file:

Best answer by owen

Hello, you need the Deaggregator and GeometryPropertyExtractor, as per the attached

capture.png

View original
Did this help you find an answer to your question?

4 replies

owen
Forum|alt.badge.img+1
  • Best Answer
  • January 18, 2018

Hello, you need the Deaggregator and GeometryPropertyExtractor, as per the attached

capture.png


Forum|alt.badge.img
  • Author
  • January 18, 2018
owen wrote:

Hello, you need the Deaggregator and GeometryPropertyExtractor, as per the attached

capture.png

Hello and thanks much @owen! I had just found the GeometryPropertyExtractor, and your advice on using the Deaggregator ahead of it helped immensely (so many transformers, so much to learn).

Now on to the work of using those trait values to create AutoCAD blocks and layers. Help with that part of the process will also be appreciated.


owen
Forum|alt.badge.img+1
  • January 18, 2018
rogerrapp wrote:

Hello and thanks much @owen! I had just found the GeometryPropertyExtractor, and your advice on using the Deaggregator ahead of it helped immensely (so many transformers, so much to learn).

Now on to the work of using those trait values to create AutoCAD blocks and layers. Help with that part of the process will also be appreciated.

No problem! I think you could use the DWGStyler to set the block name to obj_object, and setting the layer name on your writer feature type to obj_group will create separate layers

 

 


Forum|alt.badge.img
  • Author
  • January 18, 2018

Ha. That's just what I did this morning - and thought I posted this then. Hopefully it's useful to others and thanks again.


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