What's new

Search results

  1. S

    run time error

    Can you paste your code snippet here, so I can take a look at it? As I know, there is no limitation on how the sketch is created or retrieved. May be, you can also upload the part file with your sketch, so I can investigate completely. Thanks, Shubha
  2. S

    API Documentation

    Hi, The API Help is still being worked on. The attached help document is for 9.1. You can take a look at the VB Object Browser to check for any methods or Properies that are supported for 9.1. Thanks, Shubha
  3. S

    run time error

    Hi, The IsReference property does seem to work fine. Please take a look at the following code snippet from my VB sample. This should hopefully answer your question. 'The following calls sketch a Rectangle and a Circle in the XY Plane Call objPlaneSketch.BeginChange Call...
  4. S

    Sample C# project?

    Hi Mark, We still have not made any decision on when we would post C# samples. However, we do plan to do this in the near future. We will post an announcement when done so. Meanwhile, if you have any API related questions, don't hesitate to post them in this forum. Thanks, Shubha
  5. S

    Retrieving Part-List of an assembly

    Hi Dario, Sorry for not having responded to your message for a while. You can get the parts list in an assembly using the IADOccurrences Interface. Please read through the Assemblies topic in the 'Getting Started' Section of the API Help. If you have more questions, please feel free to...
  6. S

    AD instance trought API

    Alex is right. It is not possible to view the UI if you initialize Alibre Design via API.
  7. S

    C# or VB.Net and Visual Studio examples? (Anyone need them?)

    Thanks Alex. I'll take a look at this shortly.
  8. S

    Design Properties

    You can access the configurations on a Deisgn Session, i.e. on IADDesignSession. You will not be able to access it directly on IADSession. As an example: Dim adSession as IADSession Dim adConfig as IADConfiguration Dim adDesignSession As IADDesignSession adSession =...
  9. S

    Drawing BSplines from code

    Yes, you are right. You will have to define the path yourself using a 3D Sketch, which can be very tedious.
  10. S

    Drawing BSplines from code

    How about trying the Sweep Feature for this? The Path Objects can be 3D sketches. But, as you said, this can't be done via our API though and the above approach would be lot more difficult. Although we have the 3DSketch Interface in our API, you can at present only query for 3D Sketches. You...
  11. S

    Drawing BSplines from code

    Hi Eric, You had question regarding the Helix Interface in the enhancement request. Currently for a Helical Feature, for the Axis field, you will need to have a Reference Line(which is a Reference Sketch figure) in the same Sketch as the Circle, i.e. both the Circle and the reference Line...
  12. S

    Drawing BSplines from code

    Can you post your enhancement request (An Array function as you mentioned earlier) under 'Enhancements' Section in 'Drawing API Functionality'?
  13. S

    Drawing BSplines from code

    I see what you say. I am sorry, I misunderstood your previous question as array of BSplines, since you were interested in knowing about BSplines. Did you try sketching lines in a loop(looping 1440 times) and see if it took less amount of time as that for importing a file?
  14. S

    Drawing BSplines from code

    Eric, I suppose you meant, you want to add an array of BSplines. I have attached a very simple VB Sample that adds one BSpline. If you need to sketch several such BSplines, you will have to have different Control Points, weights, knots etc and then finally include the...
  15. S

    Parameter units issue

    If you use the appropriate conversion factors, then I don't think it will cause any problem. Also, I am assuming that you are first getting the model units of the design and then converting it to the appropriate display units (as demonstrated in the code snippet in this thread) Thanks, Shubha
  16. S

    Session Type Issue

    Eric, I can now understand what you are seeing. If an assembly has 2 parts in it (as occurrences), and when you get the Session Count on such an assembly, instead of 1, you get 3 and the Session Type is described to be as AD_ASSEMBLY, AD_PART, AD_PART, with AD_PART for the part sessions that...
  17. S

    Session Type Issue

    I tried this and I am correctly getting the SessionType for an assembly as 2, i.e. AD_ASSEMBLY. Would you mind posting your code snippet here so I can see what is going wrong. Here is the code snippet for what I am doing: Set objSession = rootObj.OpenFile(CommonDialog1.FileName)...
  18. S

    Starting Alibre in non-silent mode

    Eric, You are right. At present, when you use the initialize method to initialize Alibre Design, it only does this in silent mode (invisible mode). Yes, you can use empty strings for user name, password and server url to launch in offline mode. Thanks, Shubha, Alibre, Inc.
  19. S

    Parameter units issue

    -The Model Units for Angles is radians. So, you may want to convert it to your display units. -For Mass, the API outputs values in Kgs -Volume in cm³ and Surface area in cm² -Center of Gravity in cms too Thanks, Shubha, Alibre, Inc.
  20. S

    Parameter units issue

    For native Alibre Files, the model units is cms and you can assume this in your application. However, if you import files which were natively not created in Alibre Design, then the model units may vary. So, if you will be using imported files created in other CAD packages, then you may want to...
Top