Hi,
I am working on extractions of data using Property Data Sets from 3D Solids. As there are no more automatic geometric properties than Volume, I've decided then to use formulas to get measurements like thickness, length or surface. However, none of them were successful, therefore I was wondering if this is not possible for 3D Solids, in case those geometrical properties are not inherent to this object type or if there is a specific formula or solution to apply in this case.
I have already checked with a lsp odump from another post that those properties don't belong to 3D Solids. Is there perhaps any other way to get that data?
Thanks in advance for your help.
Hi @jorge.moinovaamonde ,
Think a bit about your wish. Basically, solid can be of any shape. So terms like length, thickness and similar are not unambiguously defined. In example, length. Which length, measured in which direction. So, I don't see any other value other than volume which can be automatically calculated for solids.
Maybe I did not understand your need well. Can you be more specific? What you really would like to achieve?
Regards,
Drazen
Hi Drazen,
First of all thanks for your reply. These 3D Solids I am talking about, they are coming from corridors which were extracted as solids, so part of their info is lost in the process (general info from the corridor is exported to these solids, but main geometrical stuff not). Therefore, what I would like to achieve are certain geometrical properties such as thickness, inner/outer length(toprightpoint/topleftpoint) and/or surface(toplink/bottom link in the subassembly when it was a corridor) with the property sets. As you said, only volume is defined automatically.
I got already the length with some formulas using difference between AssemblyStartStation and AssemblyEndStation(General info coming from corridors), or surface by dividing volume by thickness(entered as manual figure).
Hope this can clarify a little bit more.
Hi @jorge.moinovaamonde ,
I don't see any other possibility to add automatic property data set value to corridor solids other than manual definition. Sorry.
Regards,
Drazen
Hi Jorge,
Would you mind sharing how is the formula to get the length as you did using difference between AssemblyStartStation and AssemblyEndStation? I can't find a VB scripting that solves this.
Many thanks in advance!
Hello @Anonymous! Here's a screenshot of the code I use. I imagine you must have already solved it but the record remains
RESULT="--"
On Error Resume Next
' declare variable
startStn = "[Corridor Shape Information:AssemblyStartStation]"
endStn = "[Corridor Shape Information:AssemblyEndStation]"
' Station
start_idxMais = CInt(InStr(startStn, "+"))
end_idxMais = CInt(InStr(endStn, "+"))
start_stlen = CInt(Len(startStn))
end_stlen = CInt(Len(endStn))
start_metros = CDbl(Mid(startStn,1,start_idxMais))*1000 + CDbl(Mid(startStn,start_idxMais+1,start_stlen-start_idxMais-1)/100)
end_metros = CDbl(Mid(endStn,1,end_idxMais))*1000 + CDbl(Mid(endStn,end_idxMais+1,end_stlen-end_idxMais-1)/100)
res = end_metros - start_metros
'Return the results
RESULT =CStr(res)
Can't find what you're looking for? Ask the community or share your knowledge.