• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

lisp to delete ole objects

  • Thread starter Thread starter czar
  • Start date Start date

czar

Guest
I see what serviva a me, the condivido always was già present:

(defun c:delole)
(vl-load-com)
(if (ssget "_x" (list '(0 . "ole2frame"))))
(vlax-for n (vla-get-activeselectionset
(vla-get-activedocument
(vlax-get-acad-object))
(vla-delete n)
)
)
)
 
I ask for help: I would need a script that processes nmila dxf drawings where just start the lisp that deletes the ole objects, the first difficulty I encounter is that starting the command _appload opens the dialog box even if I have the filedia variable to zero then I struggle to imagine a series of actions alone command line.
Also never scripted, I tried to take a look at the beautiful xls file but I think I miss the basics.
every suggestion is welcome
 
https://knowledge.autodesk.com/it/s...95bb6824-0700-4019-9672-e6b502659e9e-htm.htmlthe commands opening a window should be inserted with the initial (less) dash, then read the requests/options and return them individually for each line; before writing the script do the steps directly from autocad.
You could also make a simple script. for example open a file, draw a circle, save and close, to train and then switch to what you really have to do
I never did a script that throws a lisp so I don't know if there are limits
 
I solved by putting the lisp on startup from the appload dialog.
After that it is enough to create the script with the assigned command and stop.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top