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

Command for insert block.

3 REPLIES 3
Reply
Message 1 of 4
RamanSBV
500 Views, 3 Replies

Command for insert block.

Hi,

 

Any body, can you please give me the command  for Insert block with file name.

 

using .net code (SendStringToExecute)

 

Regards,

Raman

3 REPLIES 3
Message 2 of 4
TJK77
in reply to: RamanSBV

Isn't it just SendStringToExecute("_.insert ", true,false,false)

 

-Ted

Message 3 of 4
RamanSBV
in reply to: TJK77

this looks gud.

 

But i need to pass file name (.dwg file) as paramter to to this command (insert).

 

So, how i can use this in SendStringToExecute("_.insert ", true,false,false)

 

Please advice...

 

 

Regards,

Raman

Message 4 of 4
_gile
in reply to: RamanSBV

Hi

 

The SendStringToExecute first argument have to be the same as inputs at command line IOW the same as script (.scr) content.

 

SendStringToExecute(@"_.insert "F\Blocks\Block.dwg" ", true,false,false);



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

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