cat3appr Posted March 12 Share Posted March 12 hi all, I wanted to add this to the paid service forum but I couldn't find it, I'm describing it here: I need to add dwg shapes on a pipeline drawing. For each shape I have the forward and after center point: The forward direction is based on the direction of a pipeline, as here below, AFT position in the East, and Forward to the West: The block will be inserted based on the AFT and FWD position, which will also define the orientation. The AFT and FWD points are stored in these folders and the data needs to be scraped somehow: We open a folder and we find AFT and FWD , on those .npc files, we open them and: We get the actual coordinates of the UM07 FWD : E281883.27; N 1779868.86 And UTM07 AFT: E 281888.13: N 1779872.14 Those 2 couples of coordinates will be used to insert the shape in the DWG drawing: In some folders the FWD and AFT positions are not calculated: For example UM21 folder has those 2 files, which are different from the ones above, they don’t have an average calculated, in these cases, the first set of coordinates can be used: as you can see the AFT coordinate is a list, in this case, the first one can be taken for the insertion I guess the data extraction from the folders is too complex, so eventually I could list them manually, as a series of Easting, Northing FW 281888.11,1779879.45 281882.12,1779877.76 AFT 281883.16,1779875.15 281886.17,1779874.12 and then use a Lisp to create and place the blocks in the right coordinates , is this possible? thank you Alex Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 12 Share Posted March 12 Need a dwg and a matching file. Provided the 2 co-ords can be read from a file it should be easy. Even if the points start well down in the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.