Results 1 to 4 of 4

Thread: NewBee Question on VB for Inventor.

  1. #1
    Member
    Join Date
    2004-06
    Posts
    49
    Login to Give a bone
    0

    Default NewBee Question on VB for Inventor.

    Hello,

    I want to look at some perameters in a idw, ipt, or iam. Just to get a feel for what their values are. How do I tell my program what idw, ipt, or iam I wish to look at?

    Is there a good place to look at samples of VB code for Inventor?

    Thank you,
    Roland

  2. #2
    Member
    Join Date
    2002-05
    Posts
    47
    Login to Give a bone
    0

    Default Re: NewBee Question on VB for Inventor.

    Hello Roland

    In the Inventor Help click "Programming Help (API)".
    There you can find a lot of samples and stuff that can get you started.

    Other resources:
    http://discussion.autodesk.com/forum...ID=120&start=0
    http://usa.autodesk.com/adsk/servlet...linkID=9242016
    (tutorial for Inventor 5 (!) but I have used it in 2008 )
    http://www.cbliss.com/inventor/iCode/index.htm

    Hope it helps.

    Regards Claus
    (running Inventor 2008 )

  3. #3
    Member
    Join Date
    2004-06
    Posts
    49
    Login to Give a bone
    0

    Default Re: NewBee Question on VB for Inventor.

    Dear Cll,

    Thank you for your help. I was used to programing in Turbo Pascal, and my all time favorite AutoLisp, and for some reason getting my head around oops is proving to be very difficult. Especialy the "Dim somevariable As someObject or what ever". I understand "String", "Integer", "Boolean", and the likes, but "Dim oVar As Inventor.BOM" and simular "Dim As" statements are very confussing as I don't understand what they are and when to use which one.

    Thank you,
    Roland

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: NewBee Question on VB for Inventor.

    There's another set of help docs inside the vbaide itself, which explains vba fundamentals. There is a section on variables. String, int, bool are data types and types such as Inventor.BOM are object types. The specific syntax comes from the class name as listed in the registry, which is defined by the classes in code. A class is the description of an object...its properties, methods and events. To use a class, you create an instance of it in your code. Object classes with parts separated by a dot are just subclasses. For example, Inventor is a class that describes the top layer of the application. BOM is another subclass contained in Inventor.
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. newbee question, plumbing & isometric
    By framedNlv in forum AMEP General
    Replies: 4
    Last Post: 2012-04-16, 06:05 PM
  2. Question d'un newbee :
    By neo750 in forum Revit Architecture - General
    Replies: 19
    Last Post: 2009-05-08, 06:12 PM
  3. Newbee!
    By CADKid in forum New Forum Users (Non technical)
    Replies: 9
    Last Post: 2005-10-14, 01:05 PM
  4. Newbee - Turning walls on and off
    By formarch.70565 in forum Revit Architecture - General
    Replies: 15
    Last Post: 2005-02-03, 06:19 PM
  5. Newbee imperial to metric question
    By Griff in forum Revit Architecture - General
    Replies: 6
    Last Post: 2003-12-19, 07:34 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
  •