.NET

Reply
Active Contributor
M_Mogharabi
Posts: 26
Registered: ‎12-12-2011
Message 1 of 2 (148 Views)

template unit

148 Views, 1 Replies
02-07-2012 12:27 AM

hi everyone.

 I specify a template when I open a new auotocad file and drawi  some shapes in autocad with c#.

the problem is the coordinates that I use to draw shapes does not match the template file and therefore the shapes are misplaced.(I am using centimeters for my code).

how can I change the coordinate of the template file to match my code coordinate?

thanks in advance.

Valued Mentor
fieldguy
Posts: 379
Registered: ‎03-31-2005
Message 2 of 2 (127 Views)

Re: template unit

02-07-2012 08:14 AM in reply to: M_Mogharabi

You have to create and use a new template.  The easiest way IMO is to open a drawing that is correct, delete all of the objects and purge (keep the existing layers and styles if you want) and SAVEAS with a DWT extension.

 

Templates are DWG files with a DWT extension.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!