Skip to main content
Solved

Validating AutoCAD version


chriswilson
Supporter
Forum|alt.badge.img+11

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

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

7 replies

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

 

 


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • 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
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • July 12, 2017
danilo_fme wrote:

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
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • July 12, 2017
stalknecht wrote:
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
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • July 13, 2017
chriswilson wrote:
Thanks Danillo, I'll take a look at that.

 

 

Hi @chrisw84, perfect :)

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

 

 


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • July 14, 2017
chriswilson wrote:
Yep, that works - fantastic, thanks Danilo!

 

 

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

 


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