Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Block Help needed.
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Block Help needed. (Read 1215 times)
0 Members and 1 Guest are viewing this topic.
V-Man
Bull Frog
Posts: 343
I exist therefore I am! Finally Retired!
Block Help needed.
«
on:
August 29, 2013, 10:44:40 AM »
I'm in need of inserting a block into the BlockTableRecord without actually inserting the block into the drawing. I have seen code and examples for .NET but nothing in Lisp or Vlisp. How to go about this?
Thanks,
Don
Autocad 2012
Logged
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023
Lee Mac
Seagull
Posts: 12913
London, England
WWW
Re: Block Help needed.
«
Reply #1 on:
August 29, 2013, 11:02:19 AM »
Using the
-INSERT
command:
Code - Auto/Visual Lisp:
[Select]
(
command
"_.-insert"
"Your-Block-Name-Here"
nil
)
Using the
insertblock
ActiveX method:
Code - Auto/Visual Lisp:
[Select]
(
vla-delete
(
vla-insertblock
(
vla-get-modelspace
(
vla-get-activedocument
(
vlax-get-acad-object
)
)
)
(
vlax-3D-point
0
0
)
"Your-Block-Name-Here"
1.0
1.0
1.0
0.0
)
)
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
V-Man
Bull Frog
Posts: 343
I exist therefore I am! Finally Retired!
Re: Block Help needed.
«
Reply #2 on:
August 29, 2013, 11:06:21 AM »
Lee Mac Thanks for the quick response. That's it. I should have known the the first option... duh...
Logged
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023
Lee Mac
Seagull
Posts: 12913
London, England
WWW
Re: Block Help needed.
«
Reply #3 on:
August 29, 2013, 11:11:33 AM »
- You're welcome
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Block Help needed.