Command for insert block.

Command for insert block.

Anonymous
Not applicable
864 Views
3 Replies
Message 1 of 4

Command for insert block.

Anonymous
Not applicable

Hi,

 

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

 

using .net code (SendStringToExecute)

 

Regards,

Raman

0 Likes
865 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

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

 

-Ted

0 Likes
Message 3 of 4

Anonymous
Not applicable

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

0 Likes
Message 4 of 4

_gile
Consultant
Consultant

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

0 Likes