Inventor Engineer-to-Order IdeaStation
Share your ideas about how to improve Inventor ETO with the Development Team
4 Kudos

#Region directive added to Intent language

Status: Accepted
by Mentor on ‎11-16-2012 12:31 PM

It would be very useful to have a #Region directive in the Intent language as there is in .net.


For those unfamiliar:


Basically regions allow you to expand/collapse sections of code.  This makes organization much easier.


#Region "Child Rules"
    Child testCenters As :IvSphere, Quantity = Length(testParts)
        origin =  GetTestPartPoint(child.index)
        ignorePosition? = False
        Radius = 5
        color = "Green"
    End Child #End Region

#Region "Methods"
    Method GetTestPartPoint(mIndex As Integer) As Point
        Dim xyz As List = nth(mIndex, testParts).CenterOfMass
        Return Point(first(xyz), second(xyz), third(xyz))
    End Method
#End Region
Status: Accepted
Good idea.
by Board Manager on ‎11-16-2012 02:29 PM
Status changed to: Accepted
Good idea.
Submit Your Ideas

Share and shape product ideas.

New Idea
You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor