.NET

.NET

Reply
Active Contributor
42 Posts
0 Kudos
Registered: ‎08-11-2011
Post 1 of 6
Accepted Solution

Drawing doesn't print after being converted by my program.

370 Views, 5 Replies
01-10-2012 11:31 AM

I created a program for conversion, which converts layers and dimensions, among other things.
My program runs on AutoCad 2012, had no problem with regards to AutoCad 2012.
The problem is when I try to print by opening the drawing in AutoCad 2008.
The preview is blank.
Does anyone know some configuration that possibly I changed or I forgot to change so that it is correct?
I'm putting the drawings before and after converted to see if anyone can help me.
Already, thank you!

The drawing (before) prints in AutoCad2008.
The drawing (after) doesn't print in AutoCad 2008.

 

 

While opening the After in Map 2008 these errors are displayed

** Undefined block #-1
** Undefined block #-1
** Undefined block #-1
** Undefined block #-1

...

While Auditing;

AcDbBlockReference(2404)          could not be repaired.  It will be Erased.
AcDbBlockReference(244D)   BTR Id invalid
AcDbBlockReference(244D)          could not be repaired.  It will be Erased.
AcDbBlockReference(245D)   BTR Id invalid

...

Erase 300 objects

using Recover:

Pass 2 12100   objects audited
211     Blocks audited

I don't unnderstand Spanisch but it looks alright to me after recover.

 

I can't see how you convert entities but you have to consider that the (dynamic) block structure is changed a lot and maybe the hidden blocks (*Dxxxx, *Uxxxx) as well.

 

You may explore the DWG's using the Inspector or export to DXF to find the problems.

 

 

 

 

 

Valued Mentor
388 Posts
30 Kudos
Registered: ‎03-31-2005
Post 2 of 6

Re: Drawing doesn't print after being converted by my program.

01-10-2012 12:34 PM in reply to: NayaraFJ

My guess is a version issue. 

 

Does your program do something like myDB.SaveAs(dwgfile, DwgVersion.AC1800)?

 

IIRC dwgversion.ac1800 is acad 2004.  You will have to search here.

Mentor
253 Posts
44 Kudos
Registered: ‎07-20-2011
Post 3 of 6

Re: Drawing doesn't print after being converted by my program.

01-11-2012 12:20 AM in reply to: NayaraFJ

While opening the After in Map 2008 these errors are displayed

** Undefined block #-1
** Undefined block #-1
** Undefined block #-1
** Undefined block #-1

...

While Auditing;

AcDbBlockReference(2404)          could not be repaired.  It will be Erased.
AcDbBlockReference(244D)   BTR Id invalid
AcDbBlockReference(244D)          could not be repaired.  It will be Erased.
AcDbBlockReference(245D)   BTR Id invalid

...

Erase 300 objects

using Recover:

Pass 2 12100   objects audited
211     Blocks audited

I don't unnderstand Spanisch but it looks alright to me after recover.

 

I can't see how you convert entities but you have to consider that the (dynamic) block structure is changed a lot and maybe the hidden blocks (*Dxxxx, *Uxxxx) as well.

 

You may explore the DWG's using the Inspector or export to DXF to find the problems.

 

 

 

 

 

Active Contributor
42 Posts
0 Kudos
Registered: ‎08-11-2011
Post 4 of 6

Re: Drawing doesn't print after being converted by my program.

01-11-2012 02:38 AM in reply to: NayaraFJ
Hello fieldguy!
My program has the following line:
document.Database.SaveAs(document.Name, true, DwgVersion.AC1021, document.Database.SecurityParameters);

 I do not know why, but do not have the "DwgVersion.AC1800"

 I tried to save other versions, but not solved. Even so thank you!

 

 Hello SENL1362!


I had not seen it, thank you I will try to solve these problems.
May resolve the issue of printing.
Active Contributor
42 Posts
0 Kudos
Registered: ‎08-11-2011
Post 5 of 6

Re: Drawing doesn't print after being converted by my program.

01-11-2012 02:58 AM in reply to: SENL1362

That's right SENL1362!
Thank you. The problem is the routine that converts the blocks to dimensions.
Without this routine has no errors and the drawings can be printed.
I will check this part of the code. Without this routine, the blocks associated dimensions are exploded.

It is a converter for drawings of Tekla Structures. :smileytongue:

New Member
1 Posts
0 Kudos
Registered: ‎12-11-2013
Post 6 of 6

Re: Drawing doesn't print after being converted by my program.

12-11-2013 02:53 PM in reply to: NayaraFJ

Dear NayaraFJ,

 

       I personally aslo work with Tekla and I would be interesting in your program. I was trying to find something for converting drawings from Tekla to dwg with appropriate layers, but I stopped cca 80% from my goal.

 

Could you please help me on this topic?

 

I would very appreciate, if you can contact me on my e-mail: drochytek@steelpro4.cz . 

 

Thank you.

 

J.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!