MP...that's what i'm after..the DXF codes for autoplant objects (I have managed to achieve what I wanted thru a combination of LISP and VBA)...I was more curious to know if these DXF codes could be obtained in VBA...as i already had the code for it in LISP.
It's do-able. However ... Once upon a time I was coding in VB and trying to get dxf data and state data that was a bit of a hurdle from VB (like the overlay status of an xref IIRC). Anyway, I realized I was going about the problem bass-ackwards. I decided to do all my information gathering in LISP, then I'd hand it over to the gui portion of the application, the VB stuff (i.e. I invoked the VB stuff from LISP, not the other way round). Way easier, but mileages vary ... my point is, take a high level view of the problem at hand ... is the solution being developed in an optimum regard?
From the DXF list shown..
I'm after codes 10,11 (start and end point) and 40 (pipe radius)
I don't have Autoplant at home but I'd be really surprised if the StartPoint, EndPoint and Radius are not exposed to the Automation model, so I'm not confused why you're bothering with LISP, why not go direct from VB(A)? Certainly seems the long way home to me.
... thanks for all the assitance.. :kewl:
My pleasure. BTW, someday you'll want to read from a model's associated database. Remember this map, it will save you some time.
