Author Topic: addtextatpoint  (Read 2393 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Premier Member
  • *****
  • Posts: 1432
  • Country: gb
  • Gender: Male
addtextatpoint
« on: May 15, 2015, 18:15:59 PM »
addtextatpoint has been added as a CADmep AutoLISP Function in 2016 but I wasn't sure what it's for or how it would be used.

Andy Robins informed me:
It's to help positioning any of the text objects at a specified point so the user can do some calculations around the geometry of the object to work out exactly where text needs to be positioned and automate its placement.
Works with any text type.
Useful if you are automating texting up Spools and you want the number positioned as a set distance from say the connector.
I do NOT offer support to forum postings via email, IRC or any form of instant messaging network. If you want help, ask here!

Offline petergranlund

  • Full Member
  • ***
  • Posts: 160
  • Country: us
  • Gender: Male
Re: addtextatpoint
« Reply #1 on: May 18, 2015, 13:19:31 PM »
Is there any documentation of the syntax and arguments of this function?
Peter Granlund

Offline jmerch

  • Premier Member
  • *****
  • Posts: 2297
  • Country: us
  • Gender: Male
Re: addtextatpoint
« Reply #2 on: May 27, 2015, 16:16:50 PM »
I asked support this question. Here is the answer and sample LISP. I have glanced at it but couldn't get it to work to a set coordinate to move text to, will keep messing with it:

Quote
To assist you with the AddTextAtPoint feature in Fabrication 2016 please see the following information and example AddTextP.lsp file. I don't see we have this documented and will request we include in the help file update. I noticed this query was also posted on XtraCAD if you could pass on, thanks.

A new function callable form LISP exposed from the CADmep ARX added.

(AddTextAtPoint text_index ename 3dpoint Report_Name)

Where text_Index is one of the following:
Item_Number 1
Item_Size 2
Item_Elevation 3
Item_Alias 4
Item_Set 5
Item_Length 6
Item_Custom 7

ename is the entity name, 3dpoint is the position for the text to be displayed and Report_Name is optional when used with Item_Custom text type.

Attached is a LISP routine that can be loaded into AutoCAD with CADmep loaded and run using the ADDALLTXT command which will add all the text to the object, it does use a Custom Report called "SPOOL".
Intel i7-6700K @ 4 GHz - 32GB RAM - NVidia Quadro M5000 - W10x64 - MEP & FABRICATION 2014/2017 - NAVIS 2017 - REVIT 2017.1

Offline miltonhultsiv

  • Senior Member
  • ****
  • Posts: 480
  • Country: us
  • Gender: Male
Re: addtextatpoint
« Reply #3 on: May 27, 2015, 16:36:56 PM »
I'm not fully understanding what this is supposed to do?  I thought we could always adjust where the text defaults to in the CAD settings?  I have everything set and have all text set to automatically place as I draw and just have a button that removes all text on certain pieces that I pick to remove clutter from. 
Milton Hults - fourthGEN, Inc. - Middletown, DE
"The Difference is in The Details"

AUTODESK Fabrication Suite 2018
Core i9 7900X, 64GB Vengeance DDR4 3200, Quadro P4000, (4) ASUS 28", Razer Chroma, Windows 10 Pro

Offline jmerch

  • Premier Member
  • *****
  • Posts: 2297
  • Country: us
  • Gender: Male
Re: addtextatpoint
« Reply #4 on: May 27, 2015, 16:38:25 PM »
I'm not sure either, I asked for more examples. Every since we've had this software I've requested that the spools auto tag the numbers WITH LEADERS and around geometry. I wonder if this is a precursor to that or if we're expected to do calculations now to do it.
Intel i7-6700K @ 4 GHz - 32GB RAM - NVidia Quadro M5000 - W10x64 - MEP & FABRICATION 2014/2017 - NAVIS 2017 - REVIT 2017.1

Offline miltonhultsiv

  • Senior Member
  • ****
  • Posts: 480
  • Country: us
  • Gender: Male
Re: addtextatpoint
« Reply #5 on: May 27, 2015, 16:40:08 PM »
I'm not sure either, I asked for more examples. Every since we've had this software I've requested that the spools auto tag the numbers WITH LEADERS and around geometry. I wonder if this is a precursor to that or if we're expected to do calculations now to do it.

Ahhh gotcha.  I thought I was missing something :) at least I wasnt the only one confused.  I understand what you mean about the spools and leaders automatically positioning.  That would sound like a good idea if implemented correctly.
Milton Hults - fourthGEN, Inc. - Middletown, DE
"The Difference is in The Details"

AUTODESK Fabrication Suite 2018
Core i9 7900X, 64GB Vengeance DDR4 3200, Quadro P4000, (4) ASUS 28", Razer Chroma, Windows 10 Pro