Hi friends,
Me and my colleague have different size of monitor.
I have a part with many annotations(Notes, Datum etc.)
Capture created in my screen displays all annotations.
But in my colleagues system, due to different(smaller) screen size, all annotations are not visible.
Can you please...
Hi LWolf,
sorry for the late reply.
I tried to create a boundary for the isolated master surface, but getting below error.
"Boundary operator: the selected body is closed, it has no boundary.
It is the case of a sphere as an example.
Select an open body."
It's an L shape profile, with holes...
Thanks lWolf.
Actually, it's an already existing, isolated line in a geo set which i have to use for measurement.
but yes, i can definitely try what you suggested.
regards,
vikt
Hi guys,
I am trying to measure distance between a line and a point using below code.
ptref = Partdocument.Part.CreateReferenceFromObject(pt1) 'creating reference from point
refline = Partdocument.Part.CreateReferenceFromObject(line1) 'creating reference from line
'Get measure
TheMeasurable =...
Thanks cilici. Will check and explore.
Just one question.
We did this macro for one part.
I have a product with 50-100 parts in it.
Is there a way to speed up the same process when looping through each product/part in a master product ?
Regards,
Vik
Thank you so much cilici.
Exactly what i was looking for, this kind of constructive feedback is what really helps.
Without CATIA.HSOSynchronized it was taking 12-13 sec to run this macro.
With CATIA.HSOSynchronized it's now taking only 0.51 sec :) :)
Can you tell me how it works and where else...
Guys,
Created this macro, thought of sharing.
Let me know your feedback, any correction/optimization comment is appreciated.
'Macro to hide all hybrid shapes for any level of Geo Set
'********************************************************
Sub HideShowAllSurfaces()
Dim iCount As Integer
Dim...
Hi Friends,
Below is the code to get the hybridshapes from each geo set.
Now geo sets are inside another geo set, which is again in another geo set.
'Code
For each hb as hybridbody in part1.hybridbodies '(first level)
For each hb1 as hybridbody in hb.hybridbodies '(second level)...
Okay, so here is final solution.
1.Disassemble the master surface.
2.Create Boundary for each Isolated Surface(except the master surface)
3.Disassemble each boundary feature
4.You will get Line and Circles, loop through circles and Join them
5.If join is created, it's a full circle i.e a hole...
Hi,
ferdo this will work if i have a solid body.
But here i have an isolated surface. When i disassemble it, i get approx. 50 more surfaces.
From there it is very difficult to find the surface which represent the hole in the bracket.
This is what i have so far (manual approach)
1. Select the...
Yes, i have hundreds of brackets in one product and there are multiple such products.
Selecting each bracket and creating boundary->Disassemble-> and then center point won't work. That's why an automation approach is needed.
Vik
Hi LWolf,
I understood disassemble, loop and circle curve.
When I tried selecting the whole surface and disassembling it, after disassemble, all entities are coming as Surface.1,Surface.2 etc.
How can i select the boundary or edge, so that i can get the exact whole surface ?
Vik
Hi everyone,
i have a product with multiple L Shaped bracket.
Problem is, all these brackets are Isolated surface.
Now each bracket has a hole( some may have two ).
I need to create a point to the center of this hole.
Request all to provide some solution or pointers, where i can try or create...
Hi itsmyjob,
Thanks for the post. This is exactly i was looking for.
But due to some reasons, i am not able to see any code, but yes i am able to see the tree.
I couldn't find any solution in the post that you shared.
Please suggest.
vik
Hi everyone,
i remember somebody sharing a macro library file.
i downloaded it, it had lots of useful macros for each.
Due to some reasons i lost that file.
Can somebody please share it again ?
regards,
vik
Hi,
i am using this code.
But due to some reason i m getting only 0 in as measure.
Dim length1 As Dimension
Set length1 = parameters1.CreateDimension("", "LENGTH", 0#)