Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cogo point elevation precision/display from LDD to C3D

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
bcsurvey
1715 Views, 14 Replies

Cogo point elevation precision/display from LDD to C3D

I'm trying to determine if it's possible to take a 09 LDD Companion drawing in which the elevations for many points have been moved AND/OR rotated (to align with roadway), and not only convert these to C3D, but also have them transferred along with the move/rotate information.  We're talking about a mile long stretch of roadway and the project is 6 years old (i.e. no C3D when it was originally done). 

 

The problem is that there are a ton of ground shots that need only be shown to 0.1 precision but are shown to 0.01 precision.  LDD was not able to assign an elevation precision to groups of points, only all cogo points together, which meant we had to explode certain groups of "soft shot" points once they had been inserted at the desired precision. 

 

If there's no way to do what I'm asking, it's no big deal for this case since the higher precision can be easily rounded to the lower by the viewer (better than the other way around).  But as I am the only one on C3D and have been for the past 2 and a half years, we will likely face this monster again several times over with other drafters' projects and I'd like to have a best practice in place if we need to go the other way (extracting 0.01 precision from 0.1 precision).

 

Thanks!

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
14 REPLIES 14
Message 2 of 15
AlmasSuljevic
in reply to: bcsurvey

Hi bcsurvey,

 

I don’t think you would be able to import points with labels that are moved and rotated as they showed up in LDC 2009 automatically. Once you import your project into Civil 3D the points will show up as set in the point label style used there. So you would have to manually tweak those.

 

In Civil 3D you can adjust precision in label styles. If you go into Label Style Composer there you can get into Text Component Editor where you can adjust your precision. Then you can apply different styles with precisions to different point groups. For instance, I would create different styles with precisions and different point groups (to filter them) set to use different styles as desired. Then when you import your points program will filter those points and display them according to the settings applied in point group.

 



Almas Suljevic
Product Support Specialist
Autodesk Global Subscription and Support
Autodesk, Inc.

Please click on "Accept as Solution" if post helped you resolve the issue.
Message 3 of 15
bcsurvey
in reply to: AlmasSuljevic

Thanks for the reply.  I expected that it wasn't possible, but with so much 3rd party add-ons out there, I thought I'd throw it out there and see if I got a bite.  I set up a template with descriptor keys that I've been using for setting styles, and that's worked well thus far.  I only use point groups as needed to override the desc. key settings.  I've learned that putting the intelligence into the desc. keys saves time in sorting points into groups.

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 4 of 15
BrianHailey
in reply to: bcsurvey

I know this isn't exactly what you want but if you have a lot of points that are rotated the same you can set that rotation in the AutoCAD Properties.

 

http://screencast.com/t/WBvigUsz

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 5 of 15
bcsurvey
in reply to: bcsurvey

Thank you for the reply.  Unfortunately, the point label rotations vary as the roadway curves.  I'm somewhat familiar with the options for point label styles (been on C3D for 2 years+), but since you mention it (and this is off-topic), is there a way to have the point labels orient along a figure generated by point codes?  I notice in a point label style setting that it can be set to "Object".  Does this apply only when manually creating points along a feature line?  I wouldn't expect that a line created using the points after an import would affect the style since by that time it's already been applied.  We don't use point codes to generate figures, but if the point labels can be oriented along them, then that would be a good reason to start, or at least look into it!

 

Thanks

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 6 of 15
BrianHailey
in reply to: bcsurvey

The object is the object being labled (i.e. the point).

 

If you are using description keys, you can put the rotation in the description and use that parameter in the description key to rotate the label. Perhaps someone that knows lisp can create one that harvests the LDD point info and then appends the label rotation to the description for use in C3D.

 

Just a thought.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 7 of 15
Jeff_M
in reply to: BrianHailey


@BrianHailey wrote:

Perhaps someone that knows lisp can create one that harvests the LDD point info and then appends the label rotation to the description for use in C3D.

 

Just a thought.


I had thought about this at one time. It's a good thought, but the C3D developers decided not to expose the old AECC_POINT object in any of the APIs available. So the rotation, location, drag state, and any other LDT based property is unavailable. The only way, I can think of .this may be posible would be to have a routine which is run inside LDT to save the information to an external file which could then be read back into C3D.

Jeff_M, also a frequent Swamper
EESignature
Message 8 of 15
stacy.dunn
in reply to: bcsurvey

You are correct Jeff.  Tony gives a brief summary after trashing another user's comment.

 

http://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/Converting-LDD-Point-to-Civil3D-point-i...

 

I have attached the partial example that was posted.  I don't think the link works anymore.

Stacy Dunn
Message 9 of 15
Jeff_M
in reply to: stacy.dunn

Thanks, Stacy. I recall that thread and do have the helper function Tony provided. With the newer versions of C3D (2012+) more and more of the label objects have been exposed in the .NET API. I haven't had a chance to look into whether the point labels could be relocated without special help from the c++ world. Regardless, it still requires using LDT to export the point info. 

 

Edit: 2013's CogoPoint object does have LabelLocation and LabelRotation properties. This should make it fairly simple to implement changing the C3D points. Leaving the tough part being to get the LDT point data.

Jeff_M, also a frequent Swamper
EESignature
Message 10 of 15
bcsurvey
in reply to: bcsurvey

I found the helper files that I had apparently obtained a couple years ago but never implemented.  I'm using C3D 2012 and upon trying to run this, I get:

 

Cannot load assembly. Error details: System.IO.FileLoadException: Could not
load file or assembly 'file:///C:\CAD Support
files\AeccDbCogoPointHelperSample\AeccDbCogoPointHelperSample\bin\Debug\AeccDbCo
goPointHelperSample.dll' or one of its dependencies. Operation is not
supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\CAD Support
files\AeccDbCogoPointHelperSample\AeccDbCogoPointHelperSample\bin\Debug\AeccDbCo
goPointHelperSample.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, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, 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()

 

I first tried to run it from a network location, but even when running from local drive, I get the same message.  Is C3D 2012 incompatible with this?  Also, does this require LDD and C3D to be running at the same time?  From the readme file, it's hard to tell.  At face value, the readme appears to simply describe choosing a COGO point in C3D and choosing an alternate location for the label, when the goal of the thread was to migrate vector and rotation properties from LDD to C3D.  What am I missing  (I hope Tony T. doesn't read that and drop the hammer on ME too!)  =D

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 11 of 15
Jeff_M
in reply to: bcsurvey

You must be sure to Unblock the downloaded zip file before extracting the DLL, and it must be loaded from a local drive. Example for unblocking:

 

Unblock Zip file.png

Jeff_M, also a frequent Swamper
EESignature
Message 12 of 15
bcsurvey
in reply to: Jeff_M

I deleted all extracted data and returned to original downloaded .zip file.  Right-clicked, Properties, Unblocked.  Then extracted to a local directory and upon the NETLOAD command, navigating to the AeccDbCogoPointHelperSample.dll, loading it, returning to comand line and entering MOVE_POINT_LABEL, I get the attached error message, the bottom contents of which are copied and pasted here:

 

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'AeccDbCogoPointHelperMgd, Version=1.0.3675.19201, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'AeccDbCogoPointHelperMgd, Version=1.0.3675.19201, Culture=neutral, PublicKeyToken=null'
   at AeccDBCogoPointHelperSample.Commands.MovePointLabelCommand()
   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
   at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

************** Loaded Assemblies **************

(I've deleted a bunch that were listed here but that I don't believe are relevant)


AeccDbCogoPointHelperSample
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/CAD%20Support%20files/AeccDbCogoPointHelperSample/AeccDbCogoPointHelperSample/bin/Debug/A...
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

 

Just to be clear, what I'm trying to load IS compatible with C3D 2012?  Unless the intended outcome of the assembly is to accomplish what I mention in my previous post, I won't request any more feedback on this.  I don't want to take time away from other people's issues that might be more worthy of your expertise with the software.   

Thank you

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 13 of 15
stacy.dunn
in reply to: Jeff_M

I am not sure if the routine is compatible with 2012. 

 

It is not a complete program.  It is merely an example that Tony whipped up to show how you can control the dragged location of a point label. 

 

To make this do what you want, there will be more coding involved. 

Stacy Dunn
Message 14 of 15
Jeff_M
in reply to: bcsurvey

As Stacy noted, this is just a sample program. It will not do what you are looking for directly. The error you are getting, I believe, is due to you not having extracted both dll's to the same location.

 

That being said, it runs fine in 2010, but it Fatal Errors everytime for me in 2012 but not always at the same place in the code. Sometimes I can select a point, but unles it is already in a dragged state it is not recognized as being selected so the command ends. Other times it will crash when selecting the point. And yet once it crashed as soon as I entered the command. 

 

All of that to say that No, it will not work for you in 2012 as is.

Jeff_M, also a frequent Swamper
EESignature
Message 15 of 15
bcsurvey
in reply to: Jeff_M

Ahh, that clears things up a bit. I'm starting to feel as if we drafters without much (or any) coding knowledge are lame ducks for the batch of kids coming out of school these days. I fear the day US companies begin importing Asian and east European college grads in droves instead of investing in training for older workers who are "set in their ways". Hard to argue against paying 1/2 the wage to a twice-as-competent worker.  I GOTTA GET GOING WITH THIS STUFF (custom coding).  😃

Sorry for the rant.

 

Thanks to you both for your time!

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report