Author Topic: Change Structure Label Style Event  (Read 1721 times)

0 Members and 1 Guest are viewing this topic.

heitz15

  • Guest
Change Structure Label Style Event
« on: September 09, 2016, 02:32:30 PM »
Hello guys,
 
I would like to write an code to change automatically the structure label style while moving the mouse. I have set two labels styles: left and right. The label style would be set according the structure position: left style at left structure side and right style at right structure side.

[SEE ATTACHMENT]

 
Nowadays I need to position it manually and the change the label style property (see the screencast below). But we can have thousands of structures and I would like to do it more dynamically.
 
SCREENCAST: http://autode.sk/2bKW57x
 
So, how can I get the labels move events, change their styles while moving it and show this results also while moving? I already know the code to determine when it should be left or right style but, again, not dynamically.
 
Thanks a lot,

heitz15

  • Guest
Re: Change Structure Label Style Event
« Reply #1 on: September 12, 2016, 04:31:53 PM »
Nothing? :(

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: Change Structure Label Style Event
« Reply #2 on: September 12, 2016, 05:13:21 PM »
As was mentioned over on the Autodesk C3D customization board, there is no specific event. Christopher (Civil3dReminders) pointed you to the tools you'd need to use. Here's what I just added to the Sincpac-C3D add on package:
http://autode.sk/2cEfdn1

This was done with those same tools.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Change Structure Label Style Event
« Reply #3 on: September 13, 2016, 08:11:10 AM »
Jeff,

That is pretty cool.
Civil3D 2020