Error No Function Definition Dxf
down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean Search the Community Advanced Search Forums | Ideas Browse by product Products 3ds Max A360 Products Advance Steel Alias APIs and Programming ArtCAM AutoCAD AutoCAD 360 AutoCAD Architecture AutoCAD Civil 3D AutoCAD Electrical AutoCAD for Mac AutoCAD Land Desktop AutoCAD LT AutoCAD Map 3D AutoCAD Mechanical AutoCAD MEP AutoCAD P&ID AutoCAD Plant 3D AutoCAD Raster Design AutoCAD Structural Detailing AutoCAD Utility Design Autodesk Media and Entertainment AutoSketch BIM 360 Building Ops Buzzsaw BXD: Synthesis CFD Configurator 360 Constructware Design Review DWG TrueView Exchange Apps Fabrication FeatureCAM Flow Design ForceEffect FormIt 360 Fusion 360 Fusion Connect Fusion Lifecycle Fusion Team Game Making Helius Composite Helius PFA Infrastructure Map Server InfraWorks 360 Insight 360 Inventor Inventor HSM & HSMWorks CAM Maya Mechanical Desktop Mockup 360 Moldflow Nastran Nastran In-CAD Navisworks Point Layout PowerInspect PowerMill PowerShape ReCap 360 ReMake Remote Revit Robot Structural Analysis Screencast & Project PRAXIS SimStudio Simulation Mechanical Smoke Structural Bridge Design Vault VRED New Users Getting Started with your Autodesk Product Suites Factory Design Utilities Product Design Suite International Forums Deutsch Español Français Português Русский Türkiye 日本語 中文 Other Forums Community Topics Autodesk Labs Archived Forums Close AutoCAD 2013/2014/2015/2016/2017 Autodesk Community > AutoCAD > 2013/2014/2015/2016/2017 > no function definition: DXF AutoCAD: AutoCAD 2013/2014/2015/2016/2017: (Accepted Solution) no function definition: DXF: Page 1 AutoCAD 2013/2014/2015/2016/2017 Reply Topic Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page « Message Listing « Previous Topic Next Topic » jordan_arq Participant 7 Pos
attributereferences. One of these references is a calculated field that gives the area of a polyline. This is its calculation expression: %<\AcObjProp Object(%<\_ObjId 2129748024>%).Area \f "%lu2">% where 2129748024 is the ID of the linked polyline. I'd like to get the expression above in order to extract the object id number (2129748024). My aim is to get the id number and use it to insert a new attribute into the block http://forums.autodesk.com/t5/autocad-2013-2014-2015-2016-2017/no-function-definition-dxf/td-p/5595699 that will have a calculated field corresponding to the length of the same polyline. Thanks in advance. fixo05-27-2011, 08:45 AMHi ALe, I posted solution on swamp as well Here is a quick and dirty code
New TypedValue(2, blockname), New TypedValue(410,
tab)}) Dim psr As PromptSelectionResult = ed.GetSelection(opts, filt) If psr.Status <> PromptStatus.OK Then Exit Sub If psr.Value.Count <> 1 Then Exit Sub Dim id As ObjectId = psr.Value.GetObjectIds(0) If id.IsNull Then Exit Sub Using tr As Transaction = db.TransactionManager.StartTransaction() Dim obj As DBObject = tr.GetObject(psr.Value.GetObjectIds(0), OpenMode.ForRead) If TypeOf obj Is BlockReference Then Dim bref As BlockReference = CType(tr.GetObject(id, OpenMode.ForRead), BlockReference) Dim attcoll As AttributeCollection = bref.AttributeCollection Dim att As AttributeReference For Each aid As ObjectId In attcoll Dim aobj As DBObject = tr.GetObject(aid, OpenMode.ForRead) att = TryCast(DirectCast(aobj, AttributeReference), AttributeReference) If att Is Nothing Then Exit Sub If att.Tag.Equals("LENGTH", StringComparison.CurrentCultureIgnoreCase) Then If att.HasFields Then
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us http://stackoverflow.com/questions/17011920/autolisp-how-to-solve-no-function-definition-error Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up AutoLISP: How to solve no function definition error? error no up vote 0 down vote favorite Below I have pasted the code from my drawmycoil.lsp file. (defun drwcoil () (setq helices_center '(0 0)) ; this is the center of the helices (setq inner_radius 1e3) ; 1000 microns (setq outer_radius 2.4e3) ; 2400 microns (setq coil_thickness 35) ; 35 microns (setq turns (\ (- outer_radius inner_radius) (* coil_thickness 2))) ; coil_thickness is multiplied by 2 to ; account error no function for coil spacing (while (< inner_radius outer_radius) (command "HELIX" helices_center inner_radius (+ inner_radius (* coil_thickness 2)) "t" "1" "0") ;draws one helix per iteration (setq inner_radius (+ inner_radius (* coil_thickness 2))))) ; increments the inner radius ; for the next iteration (defun c:drawmycoil () (drwcoil) (princ)) Here's the output of the lisp file after it is loaded and executed: Command: _appload coil35um_intricate.lsp successfully loaded. Command: Command: Command: drawmycoil ; error: no function definition: \\\\ In spite of having clearly defined my functions, I am unable to make AutoCAD/AutoLISP recognize them. I am using Autodesk Education Master Suite 2011. I saw quite a few tutorial sites and most of them are focused on the LISP part of the functions. I am more focused on making AutoCAD plot my drawing for me through LISP. functional-programming lisp autocad autolisp share|improve this question edited Jun 10 '13 at 11:56 Svante 31.8k548102 asked Jun 9 '13 at 16:52 Shashank Sawant 42511031 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Look at this code from your post: (setq turns (\ (- I suspect you meant to use / instead of \. share|improve this answer answered Jun 9 '13