Hi Guys,
Is there a way of checking that each part in a component node is fixed? Currently I count all the fixes in the root of the document:
oSelection.Search "CATAsmSearch.MfFixConstraint.Name=Fix'.'*,oDocument"
then count ALL the fixes:
oSelection.Search "CATAsmSearch.MfFixConstraint,all"...
Hi Guys,
I keep coming up against a problem whereby when I send a product with the associated parts to another user, that on occasion the data will exhibit broken links even though the part file is there and loads absolutely fine on my machine (with a cleared cache or not).
Is the...
HI Guys,
Pulling my hair out here, because whatever I do I cannot get instances within a component to rename.
Essentially I have a product with a component at the end of the tree with loads more parts inserted in there.
This code drills down to it and then renames them sequentially:
Sub...
Hi Guys,
Another little problem I can't for the life of me figure out.
I want to search for a specific Instance of something, for example "Apple.2". I have a SearchString Var with "Apple.2" in it.
How do I then search for that in a product?
I've tried:
oSelection.Search...
Hi Guys,
I'm currently writing a script to extract Inertial Data from a product of numerous parts.
The problem I'm coming up against is that I need to run CATIA.StartCommand ("Measure Inertia") and once I've got all the data from the Parameters fields (E.g. "Gx =...
Hi Guys,
I have the following code:
Dim objViewer3D As Viewer3D
Dim objCamera3D As Camera3D
Set MainDocument = CATIA.ActiveDocument
Set objCamera3D = MainDocument.Cameras.Item(1)
objViewer3D.Viewpoint3D = objCamera3D.Viewpoint3D
Dim DBLBackArray(2)
objViewer3D.GetBackgroundColor...
Hi Guys,
Another one I can't work out! :(
I have the 'address' (For Example: Part\Geometrical Set\Sub Geo Set\Name) for a parameter, for which then I get the value from using:
Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value
Now sometimes not all the parameters exist, so the...
Right basically I currently have a set of parts that are modeled using a 'local' axis.
However, I need to use another point/origin (actually another axis) to actually calculate the CofG.
Manually I click on the Inertia tool, create a point using the calculated CofG location using 'Create...
So the tree is:
Part
- xy plane
- yz plane
- zx plane
- Axis Systems
- PartBody
- Geo Set 1
- Geo Set 2
- Geo Set N
Basically, all I want is a count of how many geometrical sets there are (they are all named differently).
Tried to use code from here...
I need to be able to apply "Activate Terminal Node" over an entire product, but currently I can't work out to get everything (including those parts buried two levels deep in 'components' to load.
I've tried to do it via each first level product, which works apart from no parts in components...
Hi,
I'd like to compile a macro that does the following things:
1. Imports a selection of assembly file names from an excel spreadsheet.
2. Runs clash detection on each of the files listed in the spreadsheet.
3A. Exports the clash list to a txt file for import into the same excel speadsheet OR...
Hi,
First post!!
I've been tasked to automatically create drawings based on an excel spreadsheet with all the required data.
I've managed to get a script to open a new drawing, add the required text and save it using the correct naming scheme.
The problem I'm up against is that some of the...