Create Dimensions in isometric view through macro.
Create Dimensions in isometric view through macro.
(OP)
Hi Guys,
Newbie here...
I'm trying to create dimensions of a tube in isometric view.
Can somebody guide me on the same.
Regards,
Maddy
Newbie here...
I'm trying to create dimensions of a tube in isometric view.
Can somebody guide me on the same.
Regards,
Maddy





RE: Create Dimensions in isometric view through macro.
In drafting workbench ? In 3D ? What do you want to use ? VBA, CATScript (I saw companies which doesn't have installed VBA....) ?
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Create Dimensions in isometric view through macro.
First of all, thanks for reply,
I'm trying to create the dimensions in drafting workbench using catscript.
Could you please guide me on this.
I've been through the documentation part to get the references but no use as of now.
Basically the idea is to create dimensions and annotations on tube in isometric view of drafting workbench.
If the tube has got bend at certain point then the dimension should be shown till the corner point(bend radius) and so on.
Please refer the attachment.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
Sorry here is the attachment link.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
Is not so easy, drafting workbench is not so friendly....bellow is just an example of a dimension between two points (created also in macro in drafting workbench). You will need to create intersection points, a.s.o....or create them in 3D and project them in 2D...
CODE --> CATScript
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Create Dimensions in isometric view through macro.
Thanks for your kind suggestion.
This is what i'm trying to do but as of now i'm unable to get the point details of a tube.
Manually,In tubing, first we create a run through different points selected interactively.
Next, we place a tube part using the start or end point of tube.
Meanwhile bend will be created where the run takes a turn using bend radius defined (default).
This is what i'm interested about.
1. Start Point and
2. End Point Details
3. Point detail where run has taken bend and bend angle - so that i can take a projection of all these in 2D.
In documentation its been mentioned that through run we can get the nodes details using getpoint, bendangle, bend radius. where as using so i've been getting errors for getpoint (Err = Type Mismatch error).
******************************************************
GetPoint( Move iRelAxis, CATSafeArrayVariant ioNodeLocation)
Returns the location of the current ArrangementNode.
Parameters: iRelAxis -> The relative axis to be considered when calculating the coordinate.
ioNodeLocation -> The location of the ArrangementNode.
Example:
This example retrieves the location of the ArrangementNode object objNode1.
Dim dblCoords(3) As Double
Dim iRelAxis As Move
'Fetch iRelAxis from the object containing the node
...
objNode1.GetPoint(iRelAxis, dblCoords)
***************************************************
Kindly let me know do I need to get the axis system of which object (bit confused though in this case).
Please find the attached images and files(V5 R21) for your reference.
Your kind suggestion will be highly appreciated.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
Please find the attached macro for your reference.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
I'm able to get the point details from the tubing part.
Could you please guide me on how to go about representing these 3D points in isometric manner like the one in the image attached earlier.
How to calculate the angles and positions of those points, so that the they are in proper positions.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
For the time being I cannot access CATIA, maybe in few hours. And by the way, I'm stuck in r18...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Create Dimensions in isometric view through macro.
Thanks again, will attach R18 files in few hours.
Regards,
Maddy
RE: Create Dimensions in isometric view through macro.
I am also getting same error when try to use getpoint (Err = Type Mismatch error).
Can you please provide solution if you have? Thanks in advance
Regards,
Foster
RE: Create Dimensions in isometric view through macro.
Set iRelAxis = oDocument.Product.Move
Regards,
Maddy
The willingness to share knowledge does not make one charitable; it makes one self-reliant to know more.
Modified - Courtesy of Robert Brault
RE: Create Dimensions in isometric view through macro.
Regards,
Foster
RE: Create Dimensions in isometric view through macro.
Anyway i'll keep a note on that.
Regards,
Maddy
The willingness to share knowledge does not make one charitable; it makes one self-reliant to know more.
Modified - Courtesy of Robert Brault
RE: Create Dimensions in isometric view through macro.
"Is not so easy, drafting workbench is not so friendly"
how I can understand from the posts above, the problem is planar
we have 2 segments defined by
1) y=a1*x+b1 (where a1 and b1 are the "angle with x axis" and "free member" or "the intersection with y axis")
2) y=a2*x+b2
The intersection point (of the lines which support these segments) is verifying both ecuations
a1*x+b1=a2*x+b2
=>
x=(b2-b1)/(a1-a2) and
y=a1*(b2-b1)/(a1-a2)+b1
then we delete the points where the radius is starting and replace them with this intersection
in this way we can transform any filleted contour in rugged one
Bella Italia, arrivederci Roma
RE: Create Dimensions in isometric view through macro.
we must put some conditions like the lines to have different angles a1<>a2 (or a1<>-a2, I forgot how it's called this function, you know it ...) to avoid the situation when they are paralel