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

#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: http://msdn.microsoft.com/en-us/library/sd032a17%28v=vs.71%29.aspx

 

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.
Comments
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

Announcements
IdeaStation Guidelines
Review guidelines and best practices
before posting a new idea

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

Twitter

Facebook

Blogs

Pinterest

Youtube