Hi Ferdo,
I guess there is a typo in your reply.
To use SendTo API we need either PX1 license or Smart Team Plugin to Catia.
Or it is better to workaround with the way Little Cthulhu suggessted.
@rickyt,
Thanks for the suggestion, will try and let you know.
@LWolf,
Yes, your guess is partially correct, I am from NX.
I have various tube files with center curves and all were in smart team with read only access.
The center curves are separate curves and not joined, and there are other...
@Little Cthulhu,
I want to find tangent edges of selected edge from a part body.
@LWolf,
Thanks for the suggestion. Can it be done without creating any additional feature?
- Prasanna M
Hi,
Say, I have a curve/edge object to my selection.
How do i get tangent curves/edges of the selected object?
I have already searched the forum, but couldn't find any relevant posts.
Please guide to achieve the above.
Thanks,
Prasanna
@Little Cthulhu,
Follow-up question of my original post.
Will there be a need of using CATIAReference object in drawing?
If yes, how do i actually create a CATIAReference in drawing document?
Just to know in case i come across a case where i need to use CATIAReference in drawing in future...
You are correct. I overlooked the code.
Thanks.
Sub Main()
Dim catDrwDoc As DrawingDocument
Set catDrwDoc = CATIA.ActiveDocument
Dim catDrwSel As Selection
Dim catDrwSelLb As Object
Set catDrwSel = catDrwDoc.Selection
Set catDrwSelLb = catDrwSel
Dim objFilter(0) As Variant
objFilter(0) =...
Hi,
I am using Catia VBA Editor for finding the coordinates of a point in drawing view.
For some reason "GetCoordinates" method of Point2d object doesn't return anything in VBA.
The same is working fine with C#.
Exact issue as mentioned in this thread...
Thanks for the idea @Little Cthulhu. I am doing the same.
Since Selection.Paste doesn't return anything.
Is there any way to get the object of pasted text?
Will my pasted object always in the last index of the collection (In this case Texts)?
Thanks,
Prasanna M
Hi,
I am trying to create instances of a drawing text using "Translate" function. Refer the attached image.
I want to automate this, but i couldn't able to find any API for the same.
Is there any API for "Translate"?
Thanks,
Prasanna M...
Please try with below code
Sub CATMain()
Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument
Dim product1 As Product
Set product1 = productDocument1.Product
Dim my_constraints As Constraints
Set my_constraints = product1.Connections("CATIAConstraints")
Dim...
Hi,
I am trying to create an extension method to convert INFITF.Collection to a Generic.List.
Please refer my code below. But INFITF.Collection class doesn't have Item method to get the object.
How can i workaround this?
Reason why i need this is while looping some collection in catia CAA...
Sub CATMain()
Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument
Dim product1 As Product
Set product1 = productDocument1.Product
Dim my_constraints As Constraints
Set my_constraints = product1.Connections("CATIAConstraints")
Dim osel As Selection
Set osel =...
Yes i noticed that Cthulhu.
Even if i use the slash delimiter and get the string i am searching for.
How do i use the string(Part name) to get its object?
Actually i am looking for something similar to this API FindObjectByName which is under Part object.
Anyways thanks for your help, for now...
Hi,
Is there any way to get object from reference (CATIAReference)?
I have already tried searching the forum but couldn't able to find any relevant thread.
INFITF.Application catApp = (Application)Marshal.GetActiveObject("Catia.Application");
ProductDocument catProdDoc =...
Hi,
Does catia have exception class like in NX we have NXException class to handle exceptions?
If not, how can one handle exception in catia?
Thanks,
Prasanna M