From c5362c9b0ad56b40aeaf3ff489f8c0312221c59c Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sun, 12 Mar 2023 22:56:44 +0100 Subject: [PATCH] CADSTAR: Parse PINNOOFFSET and PINNOANGLE --- common/plugins/cadstar/cadstar_archive_parser.cpp | 8 ++++++++ common/plugins/cadstar/cadstar_archive_parser.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/common/plugins/cadstar/cadstar_archive_parser.cpp b/common/plugins/cadstar/cadstar_archive_parser.cpp index 47a63c74fd..2f367fcd3c 100644 --- a/common/plugins/cadstar/cadstar_archive_parser.cpp +++ b/common/plugins/cadstar/cadstar_archive_parser.cpp @@ -818,6 +818,14 @@ bool CADSTAR_ARCHIVE_PARSER::SETTINGS::ParseSubNode( XNODE* aChildNode, PARSER_C { DesignLimit.Parse( aChildNode->GetChildren(), aContext ); } + else if( cNodeName == wxT( "PINNOOFFSET" ) ) + { + PinNoOffset = GetXmlAttributeIDLong( aChildNode, 0 ); + } + else if( cNodeName == wxT( "PINNOANGLE" ) ) + { + PinNoAngle = GetXmlAttributeIDLong( aChildNode, 0 ); + } else { return false; diff --git a/common/plugins/cadstar/cadstar_archive_parser.h b/common/plugins/cadstar/cadstar_archive_parser.h index 91019e3af1..f5108fb990 100644 --- a/common/plugins/cadstar/cadstar_archive_parser.h +++ b/common/plugins/cadstar/cadstar_archive_parser.h @@ -578,6 +578,9 @@ public: bool AllowBarredText = false; ///< Specifies if barring is allowed in the design 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; std::pair DesignArea; LONGPOINT DesignRef; ///< Appears to be 0,0 always