CADSTAR: Parse PINNOOFFSET and PINNOANGLE

This commit is contained in:
Roberto Fernandez Bautista 2023-03-12 22:56:44 +01:00
parent 9d5672464e
commit c5362c9b0a
2 changed files with 11 additions and 0 deletions

View File

@ -818,6 +818,14 @@ bool CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode( XNODE* aChildNode, PARSER_C
{ {
DesignLimit.Parse( aChildNode->GetChildren(), aContext ); DesignLimit.Parse( aChildNode->GetChildren(), aContext );
} }
else if( cNodeName == wxT( "PINNOOFFSET" ) )
{
PinNoOffset = GetXmlAttributeIDLong( aChildNode, 0 );
}
else if( cNodeName == wxT( "PINNOANGLE" ) )
{
PinNoAngle = GetXmlAttributeIDLong( aChildNode, 0 );
}
else else
{ {
return false; return false;

View File

@ -578,6 +578,9 @@ public:
bool AllowBarredText = false; ///< Specifies if barring is allowed in the design bool AllowBarredText = false; ///< Specifies if barring is allowed in the design
long AngularPrecision; ///< Number of decimal points to display for angular dimensions long AngularPrecision; ///< Number of decimal points to display for angular dimensions
long PinNoOffset; ///< The distance, of a Pin Name/Identifier from its parent terminal.
long PinNoAngle; ///< The angle at which the Pin ID is positioned relative to a terminal.
LONGPOINT DesignOrigin; LONGPOINT DesignOrigin;
std::pair<POINT, POINT> DesignArea; std::pair<POINT, POINT> DesignArea;
LONGPOINT DesignRef; ///< Appears to be 0,0 always LONGPOINT DesignRef; ///< Appears to be 0,0 always