Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: scadSDK_cogoGetHorizontalAlignments

$
0
0

Jason,

You need to pre-dimension an array of Longs of the correct size to hold the list returned from the scadSDK_cogoGetHorizontalAlignments. You then feed the first element of the array to the function.

Dim lAlignCount as Long Dim lProjectID as Long Dim lHorizAlignIDs() as Long 'Array of Longs 'Get number of horizontal alignments for a given project lAlignCount = scadSDK_cogoCountNumberOfHorizontals(ProjectID) 'Resize the array of Longs to be equal to the number of alignments. Zero based, hence the -1 ReDim lHorizAlignIDs(lAlignCount - 1) 'The InRoads DLL will populate your array of Longs with the ID's scadSDK_cogoGetHorizontalAlignments lHorizAlignIDs(0), lAlignCount, lProjectID

Hope that helps. It took me a very long time to figure out how to work with the DLL calls.

Brett


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>