Skip to main content
Question

creating autocad blocks with object data

  • October 11, 2018
  • 7 replies
  • 228 views

ddecoene
Contributor
Forum|alt.badge.img+4

Hello,

i have an issue with the creation of autocad blocks and object data.

Everything has been created as i wanted: - correct autocad layer and correct OD tabelname.

But every block itself receives also object data, i don't want this to happen.

the workbench i use is very basic, just an attributevaluemapper to get a blockname for every attributevalue, so i fill in (autocad_entity = autocad_insert // autocad_block_name=<blockname from template>, autocad_color and autocad_layer)

How can i prevent the "2nd OD" to be created? (on older workbenches i've done exactly the same but there this issue doesn't occur)

Thanks,

7 replies

jneujens
Forum|alt.badge.img
  • October 11, 2018

You could try an AttributeRemover transformer to just remove all the attributes you don't need. They will then also not show up as object data.


jneujens
Forum|alt.badge.img
  • October 16, 2018

ddecoene did that solve your problem?


ddecoene
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • October 16, 2018

Hello,

 

removing all of the attributes (and adding those i need again) didn't solve the issue.

i did find a workaround, it involves spliting the data into the geo-data and the attribute data.


arxit
Contributor
Forum|alt.badge.img+5
  • Contributor
  • October 16, 2018

Hello,

I'm using FME 2018 and I have the same issue (don't see your post before posting mine...) : "AutoCAD Map 3D : Duplicate attributes when exporting points entities to block with OD", but I've no solution...

AttributeRemover doesn't solve the issue, because we need the attributes be written into object data. I tried deleting then removing Autocad format attributes "autocad_attrib_info{}", but nothing happens. Idem with dynamic schema and removing "autocad_attrib_info{}"

Any ideas ?


ddecoene
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • October 17, 2018
arxit wrote:

Hello,

I'm using FME 2018 and I have the same issue (don't see your post before posting mine...) : "AutoCAD Map 3D : Duplicate attributes when exporting points entities to block with OD", but I've no solution...

AttributeRemover doesn't solve the issue, because we need the attributes be written into object data. I tried deleting then removing Autocad format attributes "autocad_attrib_info{}", but nothing happens. Idem with dynamic schema and removing "autocad_attrib_info{}"

Any ideas ?

i didn't use the attribute-remover. At the end I add (attributecreator_4) autocad_map_odtable () "Bomen" and then write it to the Layer "Opmeting_Bomen" (Writer with no attributes).

 

The other string contains the attributes, which have to be in same layer "Bomen". (no geometry here)

 

 


Forum|alt.badge.img+1
  • December 21, 2018

I'm running into the same issue but with only one file and not the others? Has anyone found the issue or is this a bug?


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • December 21, 2018

Hi @blehm,

Any attributes defined on the output feature type will be written as Object Data as well as block attributes. To prevent the OD attributes from writing, please remove them from feature type definition.

If the attributes are pre-defined on the blocks, the values will be populated from attributes on the features sent to the writer, even if they are not defined on the output feature type. If the attributes are not predefined on the blocks, you will need to use the appropriate format attributes to create them. For more detailed information, please see the Inserts section of the FME DWG writer docs.


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