Extract object data from another drawing in the project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Alls!!
I need some help here.
I am working with an autocad project of around 20 drawing. I'm writing a lisp routine that extract both end interconections (tag name and pins names "TERM0x atrribute" of the component) of specifics wires around the project. These wire are connected to the childrens of a parent block that always is in another drawing. There are a lot of childrens (around 10 in some cases) in the whole project.
The idea is, knowing the TAG of the parent make a search of the children in the project, get the wires connected to the children and the pins names of both end of the wire.
I have the lisp routine that extract the desired data of the specific wire. But autolisp work in the active drawing and I dont know how to run autolisp code to get object data from another drawing.
I dont know how to use vl, vla, vlax function because I am a beginner user of autolisp.
Autolisp have some function that extrac children data from a parent block TAG. For example the c:wd_comp_ref_list extract the XREF of all block in the project given the TAG. By using this command I can get the children XREF, Handle, Drawing Number, File of every children in the project. Ho autolisp can do this? This mean that I can access database project to get the data obkect I need??
Maybe I need to run a script to get the data I need?? Or, can I do this by mean of vla functions??
I know that I need to study vlisp, activex . But I need some help to get the best way to do this.
Thanks in advance.