Search found 15 matches
- Mon Nov 02, 2015 6:35 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
The Id cannot be the same because, parameters passed o both APIs are different. 1. IShapes.GetFaceLoops( ElementItemId face ) 2. IShapes.GetLoopEdges( ElementId shape , int loopId) I have two loop IDs, now I am trying to get the edges of each loop. ie.- 4 separate edges. The exception is 'Invalid lo...
- Wed Oct 28, 2015 11:26 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
Ok. I understand why I have to give the shape Id. IShapes.GetFaceLoops(ElementItemId face) API gives me List<int> with count 2. Then, I am calling IShapes.GetLoopEdges(ElementId shape, loopId) where, loopId = integer Id returned by Ishapes.GetFaceLoops() API. The call is giving exception 'Invalid lo...
- Mon Oct 26, 2015 7:38 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
PFA the shape & selected face image.
It's a solid.
IShapes.GetFaceLoops() gives me 2 loop IDs.
But, IShapes.GetLoopEdges() API crashes. Also, I can't understand why this API requires shape ElementId as parameter instead of face elementItemId ?
How can I get the face loop edges?
It's a solid.
IShapes.GetFaceLoops() gives me 2 loop IDs.
But, IShapes.GetLoopEdges() API crashes. Also, I can't understand why this API requires shape ElementId as parameter instead of face elementItemId ?
How can I get the face loop edges?
- Wed Oct 21, 2015 3:31 pm
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
Right. I thought of it....I tried to get only the outer loop on the face. But for some reason, the IShapes.GetLoopType() & IShapes.GetLoopEdges() APIs are throwing exception even if IShapes.GetFaceLoops() gives me 2 loops. I think I am missing something while using these APIs as they are crashin...
- Wed Oct 21, 2015 1:57 pm
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
But, It would be best if I can actually get the face area from an API.
- Wed Oct 21, 2015 11:57 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
Right.
I think this should work for me.
I think this should work for me.
- Wed Oct 21, 2015 8:20 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
Same here. :( My aim is to determine the face(Only ElementItemId) that has max area. It's okay if I am unable to calculate the exact area value. I can think of another way of doing this, I will process only Planar faces. I can get a planar face & its edges. Then I can get length of each edge. I ...
- Tue Oct 20, 2015 2:11 pm
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
Just one shape.
GetallFaces of that shape.
Find area of each face.
GetallFaces of that shape.
Find area of each face.
- Tue Oct 20, 2015 7:46 am
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Re: Calculation of Face Area
ElementItemId
I want to find the ElementItemId of the face that has max area.
I want to find the ElementItemId of the face that has max area.
- Mon Oct 19, 2015 2:34 pm
- Forum: Specific Development
- Topic: Calculation of Face Area
- Replies: 17
- Views: 13328
Calculation of Face Area
Hi Team,
I have a shape that has 6 faces.
I want to find the ElementId of the face with maximum area.
For this purpose, I need to be able to calculate area of each face.
I searched the API help but, couldn't find anything.
Does anybody know anything about it?
Regards,
Nikhil
I have a shape that has 6 faces.
I want to find the ElementId of the face with maximum area.
For this purpose, I need to be able to calculate area of each face.
I searched the API help but, couldn't find anything.
Does anybody know anything about it?
Regards,
Nikhil
- Fri Oct 16, 2015 8:54 am
- Forum: Specific Development
- Topic: Extracting Family Info
- Replies: 5
- Views: 4620
Re: Extracting Family Info
Thanks gmanucci.
The code above will give me the Main document & the family names.
I want to access the sub-family documents. I can do that now.
Thanks. Case Closed.
The code above will give me the Main document & the family names.
I want to access the sub-family documents. I can do that now.
Thanks. Case Closed.
- Thu Oct 15, 2015 3:15 pm
- Forum: Specific Development
- Topic: Extracting Family Info
- Replies: 5
- Views: 4620
Re: Extracting Family Info
Thanks for the reply Mark.
But I figured it out.
I was trying to access the family document. Now I am accessing the separate family specific documents from PDM directly.
Thanks anyway.
But I figured it out.
I was trying to access the family document. Now I am accessing the separate family specific documents from PDM directly.
Thanks anyway.
- Tue Oct 13, 2015 3:24 pm
- Forum: Specific Development
- Topic: Extracting Family Info
- Replies: 5
- Views: 4620
Extracting Family Info
Hi Team, I have a TopSolid document that contains three families. The API IFamilies.IsFamily() returns true. The API IFamilies,GetCodes(DocumentId) return a List<string> which has 3 items containing the names of the 3 families. Each family contains one distinct shape visible only in its particular f...
- Mon Oct 12, 2015 11:50 am
- Forum: Specific Development
- Topic: How to UnBend a sheetmetal part & extract Bendline Info?
- Replies: 4
- Views: 3895
Re: How to UnBend a sheetmetal part & extract Bendline Info?
Hi,
Thanks for looking into it.
I can get the bend operation from the part but can't get the sketch along which it was bent.
How can I proceed further?
Thanks for looking into it.
I can get the bend operation from the part but can't get the sketch along which it was bent.
How can I proceed further?
- Thu Oct 08, 2015 11:56 am
- Forum: Specific Development
- Topic: How to UnBend a sheetmetal part & extract Bendline Info?
- Replies: 4
- Views: 3895
How to UnBend a sheetmetal part & extract Bendline Info?
I am a beginner. I am using TopSolid 7.9. I have a sheetmetal part that has a bend along a Line. My aim is to Unbend that part & extract the BendLine information like startPoint, endPoint etc. I have tried searching the API help, but couldn't find anything. (Technology: .Net C#) Can I get some g...