Skip to main content
Solved

Validating AutoCAD version

  • July 10, 2017
  • 7 replies
  • 45 views

chriswilson
Enthusiast
Forum|alt.badge.img+21

I have seen that the version of AutoCAD a dwg file was saved in can be found as per this link, however I'm after ideas for a good, quick way to validate this - e.g. version must be 2007 or newer. I am using the RealDWG reader, and the workspace will have to work on FME Server.

I have tried exposing the autocad_version format attribute, but in the file I am testing no value comes through for this. I do note that FME was able to do a version check when reading as shown in the log, in which case this file was found to be AutoCAD 2007.

I have thought to perhaps save the file to a temp location, read it back in with a text reader and find the version through that but I'm hopeful of a slightly tidier solution within the workspace.

Also been asked to validate dimension type, but again autocad_dimension_type is missing. Perhaps it's just my source data letting me down!

Best answer by danilo_fme

Hi @chrisw84,

I tested the extract the attribute :autocad_version with succefull.

When i put the Reader RealDWG , Parameters -> Advanced -> Read Drawing Entity Graphics will be enable:

And expose the attribute autocad_version. After run the Workspace the result will show in the level 0.

Thanks in Advance,

Danilo

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • July 12, 2017
Can you share a sample?

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • Best Answer
  • July 12, 2017

Hi @chrisw84,

I tested the extract the attribute :autocad_version with succefull.

When i put the Reader RealDWG , Parameters -> Advanced -> Read Drawing Entity Graphics will be enable:

And expose the attribute autocad_version. After run the Workspace the result will show in the level 0.

Thanks in Advance,

Danilo


chriswilson
Enthusiast
Forum|alt.badge.img+21
  • Author
  • Enthusiast
  • July 12, 2017

Hi @chrisw84,

I tested the extract the attribute :autocad_version with succefull.

When i put the Reader RealDWG , Parameters -> Advanced -> Read Drawing Entity Graphics will be enable:

And expose the attribute autocad_version. After run the Workspace the result will show in the level 0.

Thanks in Advance,

Danilo

Thanks Danillo, I'll take a look at that.

 

 


chriswilson
Enthusiast
Forum|alt.badge.img+21
  • Author
  • Enthusiast
  • July 12, 2017
Can you share a sample?

 

 

Unfortunately not, this is sensitive data that I can't share. I am going to look at Danilo's solution below.

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • July 13, 2017
Thanks Danillo, I'll take a look at that.

 

 

Hi @chrisw84, perfect :)

chriswilson
Enthusiast
Forum|alt.badge.img+21
  • Author
  • Enthusiast
  • July 13, 2017
Hi @chrisw84, perfect :)
Yep, that works - fantastic, thanks Danilo!

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • July 14, 2017
Yep, that works - fantastic, thanks Danilo!

 

 

Hi @chrisw84, i'm happy that your issue was resolved :)