Hi,
I cannot find this value mentioned in the SDK (InRoads SDK help) anywhere, can you help me find it?
In ALG-files, each alignment (An alignment is basically a complexchain) can have a "state" value string set. I know that because if I look in a LandXML file (an XML export of an ALG), there is a state value.
Since the LandXML files originate from microStation via inRoads/PowerCivil, the "state" value has to be there somewhere.
State as shown in LandXML:
<Application name="Bentley InRoads V8i (SELECTseries 2)" manufacturer="Bentley Systems, Inc." version="08.11.07.615" manufacturerURL="www.bentley.com" /> <Alignments> + <Alignment name="XXX" length="2395.1086749" staStart="33592.6860545" desc="XXX" state="proposed"> ... </Alignment> </Alignments>
State definition in LandXML:
<xs:simpleType name="stateType"> <xs:restriction base="xs:string"> <xs:enumeration value="abandoned" /> <xs:enumeration value="destroyed" /> <xs:enumeration value="existing" /> <xs:enumeration value="proposed" /> </xs:restriction> </xs:simpleType>
I would assume that the SDK function to get alignment information would return the state string, but it doesn't:
#include <SCadCogo.h> int scadSDK_cogoAlignmentInfoGet ( wchar_t *name, // (o) alignment name (size is ALGNAMSZ) wchar_t *desc, // (o) alignment description (size is ALGDSCSZ) wchar_t *style, // (o) alignment style (size is ALGFTRSZ) ALGalign *alg // (i) pointer to alignment );
name
desc
style
NULL
Apologies if you would prefer this question in another forum.
Unknown said:I would like to get VBA macro to draw a line at a specifice station on an alignment
Please post that question in a new thread. It is not related to this thread's topic.
It's not clear by 'I would like to get VBA macro' whether you plan to write your own VBA macro or that you hope somebody already created that functionality.
Regards, Jon Summers LA Solutions