.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating new drawing file.

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
RamanSBV
659 Views, 4 Replies

Creating new drawing file.

Hi,

 

How I can create new drawing(.dwg) file using drawing template(.dwt)file in back end (Means with out showing in front end).

 

Thanks in advance...

 

Regards,

Rama

 

4 REPLIES 4
Message 2 of 5
Alfred.NESWADBA
in reply to: RamanSBV

Hi,

 

if you want to create a new database (so you don't open it in the AutoCAD-Editor) you can use:

Public Sub New(buildDefaultDrawing As Boolean, noDocument As Boolean)
     Member von Autodesk.AutoCAD.DatabaseServices.Database

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 5
RamanSBV
in reply to: Alfred.NESWADBA

Thanks for your response...

 

 

Please tell me how can use tempalate in this statement

 

Regards,

Raman

Message 4 of 5
Alfred.NESWADBA
in reply to: RamanSBV

Hi,

 

>> Please tell me how can use tempalate in this statement

You can insert your template (or parts of it) in the new database (using WBLOCKCLONEOBJECTS or simililar funcionality).

You can also create a new database and do then DatabaseObj.ReadDwgFile to get the template-data into the new database-object and then -SaveAs to a new DWG.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 5

db.ReadDwgFile("<path to template file>",...)

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost