mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +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
dec56592dd
commit
7b9bda716e
@ -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