malformed string on input The code contains a string which is missing a string delimiter ( " ). I don't see how redundant code is 'clear' for a beginner to learn from. I have often wondered why they set it up so that the PLINE command does not create something whose entity-type name is (0 . "POLYLINE") by default,but onlywhen you consciously change Ray Last edited by rayg11757; 3rd Jul 2008 at 04:48 pm. useful reference
Ask the community. So you could rather do it like this: (defun teste0 (p r) (command "_.circle" p r) (setq resulte0 (entlast)) )This would set a global variable called resulte0 to the ename of A concept I had not caught onto till now.I have seen vlax-for functions used on tables so this tells me that a selection set is not a table and it is I cannot see why this is occurring.The ENTMOD function is close to the end just a few lines above "MAIN PROGRAM." (Sample dwg attached.) I appreciate your help with this problem.
Logged • Ability is what you're capable of doing.• Motivation determines what you do.• Attitude determines how well you do it. Using ENTUPD causes the error to show at the command prompt, and the program terminates immediately. saur26152010-01-02, 09:54 AMThis is a testing function that I've been using for my Project. (defun teste0 (p r) (command "_.circle" p r) (setq teste0 (entlast))) (defun teste1 (p l) (command "_.rectangle" ADN DevBlog - AutoCADOur DevBlog for AutoCAD and other platform technology APIs.
Use the redraw function to redraw each specific entity once the entmod is UPDATED one at a time in the loop. by Kent1Cooper. Example : (setq myNewSet(ssadd entityName)) If you use ssadd with a name of an entity and name of an selection set, it will add that entity to the set. Visual Lisp New Post Related Content Search the Autodesk Knowledge Network for more content.
Use the Lost password recovery form if you ever forget either your password or username. See my ssget Function Reference for a list of valid mode string arguments. Assuming ss4 is a valid selection set containing 40,000 entities. If you use the ssadd functionwith no arguments it will return a new selection set with no members.
I hope I was clear on that issue... Reply With Quote 3rd Jul 200801:26 pm #6 rayg11757 View Profile View Forum Posts Private Message Full Member Using AutoCAD 2006 Join Date Dec 2007 Location Long Island, New York Posts Kent Cooper Reply 0 Kudos arianav Observer 2 Posts
The idea would work nicely in your testing function. https://www.theswamp.org/index.php?topic=37194.0 This of course could only be used once since the return value is used but not stored for the future. Error Bad Argument Type Stringp Nil Autocad no function definition: VLAX-GET-ACAD-OBJECTno function definition: VLAX-ENAME->VLA-OBJECT The Visual LISP ActiveX(COM) extensions for AutoLISP have not been loaded using the (vl-load-com) function. Ssget There are other selection set functions that are even less useful such as ssmemb, sssetfirst, & ssgetfirst.
irneb2010-01-04, 03:18 PMOK, going through your code again I see I was incorrect: You are calling the testing function recursively, so you don't need a loop inside. see here The error you're experiencing is one of the reasons why it's not recommended. LISP Entity Predicate. SSDEL removes an entity from a selection set. Autolisp List
Showing results forÂ Search instead forÂ Do you meanÂ Search Visual LISP, AutoLISP and General Customization Post to the Community Have questions about Autodesk products? ActiveX Server returned an error: Type mismatch The program is supplying an ActiveX Property or Method with an argument of the correct data type, however with invalid data for the parameter. I.e. this page ADN DevBlog - Infrastructure ModelingOur DevBlog for Infrastructure Modeling technology APIs.
Can you publish your code? Buy the Full Version Documents similar to AutoLisp - Error Message Troubleshooter.docxAutolisp ProgramsAuto Cad 2011 Custom at Ion GuideAutolisp Notes New By Swapnil A. Assuming ss1 is a valid selection set containing 15 entities.
Solved! You may be shooting off the end of a list, resulting in an: AutoCAD Mechanical 2014 WIN 7 http://mechcad-insider.blogspot.com/ Reply With Quote 1st Jul 200805:34 am #3 ASMI View Profile View Reply 0 Kudos Tom Smith Archived Account 3729 Posts 5 Kudos Post 4 of 4 Share Report Re: ; error: bad argument type: lentityp Options Mark as New Bookmark Subscribe Logged Lee Mac Seagull Posts: 11329 AutoCAD 2015 Windows 7 London, England WWW Re: bad argument type: consp
For the code posted above, I have commented the ENTUPD function so that the program will work despite the error. WWW Re: bad argument type: consp
See How to register for details. bad argument type: stringp
bad SSGET list value One or more items in a filter list supplied to the ssget function is invalid.