Solved! Go to Solution.
Solved by kh_night. Go to Solution.
> {quote:title=mjfarrell@earthlink.net wrote:}{quote}
> sounds like you might try converting that polyline into a comma delimited TXT file that contains STA, Elevation, (Vertical Curve Optional), then use create profile from file, and import the TXT file to draw your FG profiles in the profile view grid.
Spoken like a Map expert... 🙂
I actually don't know how you would manage that... converting the polyline into a Sta/Elev report would be tricky.
I'm partial to this solution myself. Just position the polyline on the profile view, then select it. Instant Profile. Well, as long as there are no vertical curves, anyway.
-- Sinc
http://www.ejsurveying.com
http://www.quuxsoft.com
Hi
You can use this simple program! Type "NETLOAD" in command bar and load this DLL and type "PFP" in coammand bar and then select your polyline then select your Profile View. Of course your polyline must be in your ProfileView. If you have problem in netload or loading this dll, you must copy and paste or replace with second file ("acad.exe.config") and right click on ProfileToolBox.dll and go to properties and UNBLOCK this dll file.
Good Luck
This is just awesome....... solved too many issues
@kh_night wrote:Hi
You can use this simple program! Type "NETLOAD" in command bar and load this DLL and type "PFP" in coammand bar and then select your polyline then select your Profile View. Of course your polyline must be in your ProfileView. If you have problem in netload or loading this dll, you must copy and paste or replace with second file ("acad.exe.config") and right click on ProfileToolBox.dll and go to properties and UNBLOCK this dll file.
Good Luck
for me.....KUDOS!!!
Hi this is what I got when I tried to load the dll:
"Command: NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\txiao\Downloads\DLL\ProfileToolBox.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Users\txiao\Downloads\DLL\ProfileToolBox.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()"
then "PFP" won't work, can someone help me?
Thanks
Just right click on DLL file and select properties and click on Unblock button and then run this dll again with netload command.
@kh_night wrote:
Hi
You can use this simple program! Type "NETLOAD" in command bar and load this DLL and type "PFP" in coammand bar and then select your polyline then select your Profile View. Of course your polyline must be in your ProfileView. If you have problem in netload or loading this dll, you must copy and paste or replace with second file ("acad.exe.config") and right click on ProfileToolBox.dll and go to properties and UNBLOCK this dll file.
Good Luck
Hi
Thank you for sharing this tool. Sadly, it wasn't working for me, so I decompiled it and tried to fix the code. Which actually worked. I now have a working version for C3D 2019. See here.
Hi, thank you for sharing this source code.
But, as I outlined in my reverse engineering project found here, there are a couple of deficiencies in your code. In particular:
//Original Profile oProfile = trans.GetObject(oProfileId, OpenMode.ForRead) as Profile; //Should be Profile oProfile = trans.GetObject(oProfileId, OpenMode.ForWrite) as Profile; //Original Point2d po = arcseg.GetSamplePoints(10)[6]; //Should be Point2d po = arcseg.GetSamplePoints(11)[6];
Ooops, in the previous post, the point selection arguments should be (11)[5]
Thanks for posting. I downloaded and ran the command MYPFP. When prompted to select the polyline, the program returns "Not a polyline".
I'm assuming operator error on my part somewhere in the process. The polyline consists of only tangent sections (no curves)
Thanks,
Larry
Can't find what you're looking for? Ask the community or share your knowledge.