Author Topic: DXF Codes  (Read 7658 times)

0 Members and 1 Guest are viewing this topic.

Spageddie

  • Guest
Re: DXF Codes
« Reply #15 on: September 20, 2005, 12:42:24 AM »
 8-) thanks for the response,

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.

But to answer your question...
From the DXF list shown..
I'm after codes 10,11 (start and end point) and 40 (pipe radius)

Glen...
As for the Vlax stuff ... It was posted as s possible solution to help achieve my goal.... found it has some benifits but by then I already had the LISP to get the info I wanted.

again thanks for all the assitance.. :kewl:

MP

  • Seagull
  • Posts: 17497
Re: DXF Codes
« Reply #16 on: September 20, 2005, 07:42:47 AM »
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.

:)
\|// Set goal. Experiment tirelessly until
|Oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox

MP

  • Seagull
  • Posts: 17497
Re: DXF Codes
« Reply #17 on: September 20, 2005, 10:48:37 AM »
Ok, just checked -- looks like Rebis / Bentley didn't think it was important to expose those properties ( StartPoint, EndPoint, Radius ).

Yet another reason to love Rebis / Bentley.

NOT.
\|// Set goal. Experiment tirelessly until
|Oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox

Spageddie

  • Guest
Re: DXF Codes
« Reply #18 on: September 23, 2005, 10:03:26 AM »
 8-) Hence why used a lisp/vba combo, like you said use lisp to gather the info and pass it onto the vba macro...

MP

  • Seagull
  • Posts: 17497
Re: DXF Codes
« Reply #19 on: September 23, 2005, 10:08:50 AM »
8-) Hence why used a lisp/vba combo, like you said use lisp to gather the info and pass it onto the vba macro...

Yep, but I believe you're going the other way 'round no?. You're starting in VBA and then asking LISP for help, whereas I start in LISP, do the information gathering I need and then let VB (via an in process activex dll) take care of the gui business (if dcl is too anemic).

:wink:
\|// Set goal. Experiment tirelessly until
|Oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox

Spageddie

  • Guest
Re: DXF Codes
« Reply #20 on: September 26, 2005, 05:48:50 PM »
 8-) No no ... I am starting with the lisp then transfering to the VBA macro....
Works rally well to !

jjs

  • Guest
Re: DXF Codes
« Reply #21 on: November 02, 2005, 09:44:27 AM »
back at the vault, somecallmedave had made a routine to get dxf codes using VBA. Not sure what methods he used. You might be able to find it at the waybackmachine or ask some former vault member if they have it.

Bob Wahr

  • Guest
Re: DXF Codes
« Reply #22 on: November 02, 2005, 10:39:58 AM »
Or you might PM SCMD and ask him.

jjs

  • Guest
Re: DXF Codes
« Reply #23 on: November 03, 2005, 10:22:33 AM »
Thanks 808, I did not know if he had made the transition.

jjs

  • Guest
Re: DXF Codes
« Reply #24 on: December 06, 2005, 06:31:56 PM »
Maybe he could post the code here? Please?