Hi Ferdo
Finally i got the solution, with some value input from ferdo
I have change the approach
--> First i have search the -BS, -FS, -SV and -FV
--> Then i have stored this search result in Array
--> one by one this search result in Array is used to achieve the task
----------------
Here is...
Sorry Ferdo
If previously i was not clear.
I want to go with pre selection of Required part.
Then Search body and HybridBody together
and apply layer on body and geometric set hide in one Macro
Hello Ferdo
here is the Product Structure
For macro i have to approach in mind
1. First Select all The BS, FB and SV and then run the macro
on which i stuck
2. Select the top product and Run the macro, Macro will only in BS, FB and SV
and hide the Geometric set and Set the Layer of all bodies...
Thank u Ferdo for the reply
I will upload our practice model from home.
Till now what I have found is In MsgBox MyArray(i)... it is showing the
stored value in Array (Body and Hybrid Body)
But while adding in ObjSelection.Add it is not considering the "Body" and "Hybrid Body" as object.
But in...
Hello
Friends
This discussion is started some days back.
I am creating a macro to hide geometric set and set layer of Body
with suggestion of some member (especially ferdo), I have created one still I am stuck at one location with error code 424
Sub CATMain()
Dim Document1 As Document
Set...
Hello ferdo
thank u for the reply
yes... you are right
Now i can expect my problem will solve.
There is some bodies other then Part body and some geometric set.
Can you please give me an idea how can we proceed or solve the issue.
Hello
I am new in Catia macro
I am working in a Macro that an hide geometric set and set layer
I have created but it is only working to set Layer
Sub CATMain()
Dim objSelection1 As Selection
Set objSelection1 = CATIA.ActiveDocument.Selection
Dim objSelection2 As Selection
Set objSelection2 =...