How to Select the Current GeometricalSet, by not HardCoding its Name 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. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts January 22, 2015 at 2:37 pm #1505 JuliusCaesarParticipant 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. May 18, 2015 at 8:49 pm #1706 MattParticipant 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 May 18, 2015 at 9:05 pm #1708 MattParticipant Yeah, that should work…here is more info: http://www.coe.org/p/fo/st/topic=113&post=16923#p16923 Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) The forum ‘CATIA Macro Programming’ is closed to new topics and replies.