• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups
    2 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 Employee Jon.Balgley on ‎11-16-2012 02:29 PM
    Status changed to: Accepted
    Good idea.
    Announcements
    IdeaStation Guidelines
    Review guidelines and best practices
    before posting a new idea