How do you make a custom Multileader Arrowhead come in to new Drawing?

How do you make a custom Multileader Arrowhead come in to new Drawing?

Anonymous
Not applicable
977 Views
4 Replies
Message 1 of 5

How do you make a custom Multileader Arrowhead come in to new Drawing?

Anonymous
Not applicable

I have defined a custom Multileader Ellipse Arrowhead tool on my tool pallet, however, when I execute the Multileader Ellipse Arrowhead tool, a closed arrowhead appears instead of the Ellipse Arrowhead! If I open the custom Ellipse Arrowhead drawing & copy/paste into the new drawing, then the custom Ellipse Arrowhead will come in off the tool pallet. It is a pain to have to copy/paste the custom Multileader Ellipse Arrowhead tool into each & every new drawing! Can anyone tell me how to make the custom Multileader Ellipse Arrowhead come in off the tool pallet without copying/pasting the custom Multileader Ellipse Arrowhead tool into each & every new drawing?

I have attached the custom Multileader Ellipse Arrowhead drawing.

 

Frustrated CAD Jockey,

 

Corey M. Barge   

0 Likes
978 Views
4 Replies
Replies (4)
Message 2 of 5

Ranjit_Singh
Advisor
Advisor

Add it to your template drawing and every time you create a new drawing from template it should come in.

0 Likes
Message 3 of 5

m_badran
Advocate
Advocate
0 Likes
Message 4 of 5

dbroad
Mentor
Mentor

The others have answered your query.  The question actually belongs in the AutoCAD forum rather than a customization forum but since you asked here, there should be some discussion of programming methods.  This is a brief, limited and crude demonstration of the process, assuming that the drawing is open in the documents collection and the current drawing needs the mleader.  Similar methods should be possible with the core console to batch the process.

(setq ac   (vlax-get-acad-object)
      ;;current document
      do   (vla-get-activedocument ac)
      ;;document collection
      docs (vla-get-documents ac)
      ;;source drawing
      do0  (vla-item docs "Roberds NOTE-DIA-COND-ELL Arrow.dwg")
      ;;source model space
      ms0  (vla-get-modelspace do0)
      ;;target model space
      ms   (vla-get-modelspace do) 
)
;;list of objects to copy - mleader is only object in that drawing.
(setq obs (list (vla-item ms0 0)))
;;copy objects from source to target with deep cloning.
(vlax-invoke do0 'copyobjects obs ms)

limitations:  if the mleader style already exists, changes might not be applied.  If the block already exists, it probably won't change.  Coding for these situations would be more complex.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 5 of 5

Anonymous
Not applicable

To  All,

Thanks for all your responses which were all helpful. I discovered the real problem was the antiquated AutoCAD 2008 program, I'm embarrassed to admit, my employer has me using was the culprit. I opened the Custom Multileader definition drawing in my my home PC AutoCAD 2015/2016, dragged the Custom Multileader onto my tool pallet & it comes into a new drawing just fine!

Fortunately, my employer is planning to upgrade to AutoCAD 2017 in a month or 2, which will resolve the problem.

 

Corey Barge

0 Likes