Results 1 to 1 of 1

Thread: Property Set Definition: Formula Def for ACAD OBJs

  1. #1
    Active Member
    Join Date
    Columbus, Oh
    Login to Give a bone

    Lightbulb Property Set Definition: Formula Def for ACAD OBJs

    I'm using ACA 2009. I have users who have developed some of their 3d objects using 3D Solids. We generally build 3d content using the site actual z-coordinate, so the z-location property is important for our use.

    I've created a PropertySet to capture 3D-Solid Objects info. As you know the Automatic Property Definitions are limited is limited for them. So, I used a Formula Property to get at the Object property.

    The following test VB-Script will capture the 3D-Solid "Volume" just fine:

    Set acadApp = GetObject(,"AutoCAD.Application")
    Set SolObj = acadApp.ActiveDocument.ObjectIDToObject( "[ObjectID]" )
    RESULT = SolObj.Volume/1728
    But try the same method for the "Position" returns a "square ? square":
    Set acadApp = GetObject(,"AutoCAD.Application")
    Set thisObj = acadApp.ActiveDocument.ObjectIDToObject( [ObjectID] )
    RESULT = (thisObj.Position)
    I tried "thisObj.Position.(2)" as well.
    It seems it's trying to return something, but doesn't know how to display on the extended Data Tab. It may jsut have trouble with displaying coordinates.

    Basically, I'm using a Property Set to schedule regular Autocad Objects instead of using the Data Extract feature.

    See attached dwg for sample.

    Has anyone been sucessful at getting the z-location of objects via VB-Script?
    Or can you give suggestion on getting the above code to work within a Formula Definition?

    Attached Files Attached Files
    Last edited by freedomonek; 2010-03-08 at 08:05 PM. Reason: Wishing for feedback. :)

Similar Threads

  1. Formula Property Definition PLEASE HELP
    By douglas.167342 in forum ACA General
    Replies: 1
    Last Post: 2010-02-18, 10:34 AM
  2. formula function in property set definition
    By sam_ctlim in forum AMEP General
    Replies: 4
    Last Post: 2009-03-05, 11:07 PM
  3. Formula Property Definition
    By jgardner.79905 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2006-06-13, 12:58 PM
  4. Problem with Formula Property Definition
    By mflure.80520 in forum Style Management
    Replies: 10
    Last Post: 2005-08-18, 10:39 PM
  5. Formula Property Definition
    By arcadia_x27 in forum ACA General
    Replies: 1
    Last Post: 2004-09-10, 06:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts