cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

#Region directive added to Intent language

#Region directive added to Intent language

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
1 Comment
Jon.Balgley
Alumni
Status changed to: Accepted
Good idea.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report