Results 1 to 2 of 2

Thread: API and Uniform Planar Load in contour

  1. #1
    Member
    Join Date
    2010-03
    Location
    Porto
    Posts
    18
    Login to Give a bone
    0

    Default API and Uniform Planar Load in contour

    I'm trying to define a Uniform Planar Load in contour using API.
    The code below is working but I'm still missing how can I define the option "Automatic panel selection in the contour plane".
    Any help will be appreciated.

    Dim robapp As IRobotApplication
    Set robapp = New RobotApplication
    Dim cas As IRobotCase
    Set cas = robapp.Project.Structure.Cases.Get(1)
    Dim smpl_cas As IRobotSimpleCase
    Set smpl_cas = cas
    Dim rec As IRobotLoadRecord
    NovaCarga = smpl_cas.Records.New(I_LRT_IN_CONTOUR)
    Set rec = smpl_cas.Records.Get(NovaCarga)

    rec.SetValue 0, PX
    rec.SetValue 1, PY
    rec.SetValue 2, PZ
    rec.SetValue 12, 0 'Not projected load
    rec.SetValue 13, 3 'Number of points in contour
    rec.SetValue 14, 28
    rec.SetValue 15, 0 'Global Coord. system
    rec.SetContourPoint 1, X1, Y1, Z1
    rec.SetContourPoint 2, X2, Y2, Z2
    rec.SetContourPoint 3, X3, Y3, Z3

  2. #2
    Member
    Join Date
    2010-03
    Location
    Porto
    Posts
    18
    Login to Give a bone
    0

    Default Re: API and Uniform Planar Load in contour

    Problem solved adding this line:

    rec.SetValue -1, 1

Similar Threads

  1. Uniform Textures
    By Wish List System in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2013-06-25, 07:54 AM
  2. can i make a contour label that leaves out a single contour?
    By JRBOURNE in forum AutoCAD Civil 3D - General
    Replies: 3
    Last Post: 2012-08-02, 01:18 PM
  3. incorrect definition of contour load
    By pwkhang242253 in forum Robot Structural Analysis
    Replies: 0
    Last Post: 2011-12-02, 06:38 AM
  4. Multi-Planar Sweep
    By raddis in forum Revit Architecture - General
    Replies: 6
    Last Post: 2008-03-28, 01:25 AM

Posting Permissions

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