I have found a bit of code from the Catia portable script center (Note insertion V2) that I am trying to use but it keeps throwing an error.
ReDim objSelFilterType1(0)
objSelFilterType1(0) = "AnyObject"
sStatus1 = Selection1.IndicateOrSelectElement2D("Select Leader Head Point"...
Bad news sorry. The code I've been given to strip and rebuild is company property. I will only be able to share what I manage to cover by myself, but if I run into any problems I will post them here. Thank you to those who showed interest in this topic!
I've changed to a new script for the basis for this tool. I will ask the team tomorrow if I can share it here or if it is protected under our company asset laws.
Update: I'm currently modifying this script to see if I can call on the generated points and draw a line to them (originally designed to draw a line to traverse the center point of holes and place a point in their centers).
If anyone wants to have a crack at it also - here it is:
Sub...
Hello Ferdo!
I have seen several of your posts and I am pleased to see you posting on this topic [thumbsup2]
I just read this morning that generated items are not exposed to the VBA API and will be hard to attach features to them (e.g a leader with text). This is why I was suggesting an...
Picture 1: a Polyline drawn in 3D with 3D points. Picture 2: Leader with Text added to each point along the chain (Chain priority 1, X-Axis priority 2 and Y-Axis priority 3).
Now, what I'm trying to find a solution for is a macro that can recognise the points in a Polyline in 3D ideally in an active drawing view, or in the 3D part tree (worst case), and either adding a Text with Leader directly to each of them if it's possible, or by generating a new set in 2D points...
Ref: thread560-349581
Here is the working version of what the previous thread managed to achieve. Still a long shot from what I am looking for but someone may find it useful.
' ==============================================================
' Purpose: Code to create a text file in Folder (MUST...