Results 1 to 6 of 6

Thread: Property Set Formula

  1. #1
    Active Member
    Join Date
    2015-10
    Location
    Trencin, Slovakia
    Posts
    80
    Login to Give a bone
    0

    Default Property Set Formula

    Hi. i have a property set in AutoCAD. have an automatic property ObjectType (for Lines and Polylines), and formula property named Result for example.
    I want to have result 1 if objecttype is "Line" and 2 if objecttype is "Polyline" and 3 if objecttype is no Line or Polyline.

    i defined formula like this:

    If [ObjectType] = Polyline Then
    RESULT = 1
    ElseIf [ObjectType] = Line Then
    RESULT = 2
    Else
    RESULT = 3
    End If

    but result is always 1. i tryed to use [ or " for text string, but is the same.

    what is the right expression for formula? thanks.


    i

  2. #2
    Member
    Join Date
    2011-08
    Posts
    14
    Login to Give a bone
    0

    Default Re: Property Set Formula

    Is this VBA or is it something else?

  3. #3
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Property Set Formula

    You might instead try using a 'Select... Case' statement:

    https://msdn.microsoft.com/en-us/library/cy37t14y.aspx
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  4. #4
    Active Member
    Join Date
    2015-10
    Location
    Trencin, Slovakia
    Posts
    80
    Login to Give a bone
    0

    Default Re: Property Set Formula

    I am only user of AutoCAD architecture. i even do not know, what kind of script it is, exactly. i use this dialog box.
    property1.png

  5. #5
    Active Member
    Join Date
    2015-10
    Location
    Trencin, Slovakia
    Posts
    80
    Login to Give a bone
    0

    Default Re: Property Set Formula

    I have tried Select...Case , but is the same.
    Property2.png

  6. #6
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Property Set Formula

    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. 2013: Property Set Formula Help
    By libbybapa in forum ACA General
    Replies: 1
    Last Post: 2014-03-17, 10:54 PM
  2. Property Sets - Formula
    By sheila.bjerreskov in forum AMEP General
    Replies: 2
    Last Post: 2010-07-27, 10:35 PM
  3. Formula Property Definition
    By jgardner.79905 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2006-06-13, 12:58 PM
  4. 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
  •