i've attached an xml file, but i can't figure out what part i need, can somebody clip it out this first time so i can figure it out myself next time. I want to make a profile from a file, i.e. text. thanks
Trying to write a custom command to solve this exact problem is how I stumbled into theswamp.. Without writing code though, the only real option we have is to <create profile from file..> since we can't create one from a polyline (thanks Autodesk). After some trial and error I figured out that the file needs to be *.txt with only 2 columns, station and elevation, separated by a space.
The easiest way to get this data is to run a <sta-elev> or <vPI> report on the profile you want to copy/offset (depending on your C3D version) and then dump it into a text file. Just keep in mind the station-elevation text file used to make the new profile should only include numeric values with no special formatting, so do a <find..replace> on the data you get from the report and remove any [ + ] or [ ' ] characters if needed.
The new profile will be static, and not dynamic, and this is because the new profile is not tied to any surface or other data source. But this is still a decent method because that station-elevation text file can be kicked to another user so he can do the same thing even though he may not have any of the same alignment or surface data in his drawings.
If you want to tackle this problem with code instead and streamline things a bit let me know, I couldn't rest until I solved it with LISP :kewl: