Let’s Start Programming! Forums CATIA Macro Programming How to Select the Current GeometricalSet, by not HardCoding its Name

This topic contains 2 replies, has 2 voices, and was last updated by  Matt 2 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1505

    JuliusCaesar
    Participant

    Hello Everyone,

    I would like to Set MyHybridBody to the currently Active Geometrical Set, What i have done presently is:

    ‘Declaring Geometrical set
    Dim HBody As HybridBody
    Set HBody = MyPart.HybridBodies.Item(3)

    I want to avoid this, and select the Active GeometricalSet.

    Hope someone has a solution. Thanks for your Attention.

    #1706

    Matt
    Participant

    The chm file says the InWorkObject property “Returns or sets the in work object of the part”. So you might be able to do something like:

    Dim oGeoset as hybridbody
    set oGeoset = oPart.InWorkObject

    #1708

    Matt
    Participant

    Yeah, that should work…here is more info:
    http://www.coe.org/p/fo/st/topic=113&post=16923#p16923

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘CATIA Macro Programming’ is closed to new topics and replies.