Hi good morning, I need help.
In school I left an exercise in visual Basic and AutoCAD and need help,
The problem is that I need to do to get the properties to click a wall for example, what is the height, broad and then do things like operations.
The bad is that it's my first time doing this kind of development with AutoCAD, I would greatly appreciate if you help me step by step
Solved! Go to Solution.
Solved by REID7800. Go to Solution.
Try Autolisp!
(defun c:dump ( / *error* obj ) (vl-load-com) (defun *error* ( m ) (or (wcmatch (strcase m) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " m " **")) ) (princ) ) (if (setq obj (car (entsel "\nSelect object to show applicable properties/methods: "))) (progn (vlax-dump-object (vlax-ename->vla-object obj) t) (vlax-release-object (vlax-ename->vla-object obj)) (textscr) ) ) (princ) )
Properties Example:
(vla-get-Coordinates object)
(vlax-get object 'Coordinates)
Method Example:
(vla-Highlight object :vlax-true)
(vlax-invoke object 'Highlight :vlax-true)
Hi thanks for the reply gave me an idea, but I want to do a Windows Form in visual studio then connect AutoCAD using VISUAL BASIC and when clicking to give the line attributes display in a tectbox or label.you could help me please
As far as Visual Basic goes, I have no experience with it. I can program in C#.. You CAN obtain and modify certain properties from C#. Would this be of interest to you?
You probably should visit the .NET group here: http://forums.autodesk.com/t5/NET/bd-p/152
Something really quick... What are you trying to accomplish??
Explained I would start the Windows forms, connect to AutoCad and let me select a line for example if the line have a height of 9 ft and a width of 3ft and wall type, put those values into a textbox or a label and display it in Windows forms
You say wall... is this Autocad...?
What kind of object? Mline, Polyline, Line..?
similar a video video but upside down , i have the line and demos when you click in the line and get the properties and save in varies and show in a textbox
you are helping me a lot I really appreciate it
similar a video video but upside down , i have the line and demos when you click in the line and get the properties and save in varies and show in a textbox
you are helping me a lot I really appreciate it
something like this? do you have visual studios? What version of Cad do you have?
You are a genius that's exactly what I need and I have visual autoCAD 2012 and 2014
Guess you can't send files through pm... here you go