mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025188: Data Exchange, Step Export - Losing shapes after import
Check on null for description added to WriteStep methods (for product, product_definition and product_definition_formation)
This commit is contained in:
parent
ee8f2ea3c2
commit
db976e0a59
@ -91,7 +91,14 @@ void RWStepBasic_RWProduct::WriteStep
|
|||||||
|
|
||||||
// --- own field : description ---
|
// --- own field : description ---
|
||||||
|
|
||||||
SW.Send(ent->Description());
|
if (!ent->Description().IsNull())
|
||||||
|
{
|
||||||
|
SW.Send(ent->Description());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SW.SendUndef();
|
||||||
|
}
|
||||||
|
|
||||||
// --- own field : frameOfReference ---
|
// --- own field : frameOfReference ---
|
||||||
|
|
||||||
|
@ -78,7 +78,14 @@ void RWStepBasic_RWProductDefinition::WriteStep
|
|||||||
|
|
||||||
// --- own field : description ---
|
// --- own field : description ---
|
||||||
|
|
||||||
SW.Send(ent->Description());
|
if (!ent->Description().IsNull())
|
||||||
|
{
|
||||||
|
SW.Send(ent->Description());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SW.SendUndef();
|
||||||
|
}
|
||||||
|
|
||||||
// --- own field : formation ---
|
// --- own field : formation ---
|
||||||
|
|
||||||
|
@ -71,7 +71,14 @@ void RWStepBasic_RWProductDefinitionFormation::WriteStep
|
|||||||
|
|
||||||
// --- own field : description ---
|
// --- own field : description ---
|
||||||
|
|
||||||
SW.Send(ent->Description());
|
if (!ent->Description().IsNull())
|
||||||
|
{
|
||||||
|
SW.Send(ent->Description());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SW.SendUndef();
|
||||||
|
}
|
||||||
|
|
||||||
// --- own field : ofProduct ---
|
// --- own field : ofProduct ---
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
puts "TODO OCC25188 ALL: Error: File "
|
|
||||||
|
|
||||||
puts "========"
|
puts "========"
|
||||||
puts "OCC25168"
|
puts "OCC25168"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user