View Full Version : Custom Blocks in a numbering list using MTEXT??
StykFacE
17th May 2007, 02:05 pm
Can this be done? When I type up our "Notes By Symbol" I usually have to copy the "symbol" and renumber it down the list. I would love to just use the Numbering option in MTEXT and swapping/using a block for the numbering system down the list. Is this possible? Thanks in advance. :)
dbroada
17th May 2007, 04:00 pm
Styke,
I'm not quite sure what you are asking for. Can you post an example?
StykFacE
17th May 2007, 05:15 pm
Styke,
I'm not quite sure what you are asking for. Can you post an example?
Sure, here's a DWG file with examples attached. :)
profcad
18th May 2007, 06:04 am
Here's a simple lisp routine with no error checking. You can use this to add the symbol after you type all the text.
(defun c:ICODE ( / ANG EN IP1 IP2 SN SP )
(setvar "attdia" 0)
(setvar "attreq" 1)
(setq ip1 (getpoint "\nPick Insertion Point of symbol: ")
ip2 (getpoint ip1 "\nPick Insertion Point of 2nd symbol ")
sn (getint "\nEnter Starting Number: ")
en (getint "\nEnter Ending Number: ")
sp (distance ip1 ip2)
ang (angle ip1 ip2)
);setq
(while (<= sn en)
(command "insert" "VMI-KEYN-03" ip1 "1" "1" "0" sn)
(setq ip1 (polar ip1 ang sp))
(setq sn (1+ sn))
);while
(setvar "attdia" 1)
);eop
StykFacE
18th May 2007, 01:08 pm
Awesome!! Thanks John, works like a charm. 8)
dbroada
18th May 2007, 01:11 pm
Oooh good - I've not really had a chance to look at it yet!
johnengineer
9th Jul 2007, 10:47 pm
I found this lisp to be very useful. However, can this lisp be modified in order for the block to line up with each sentence which are not spaced evenly apart?
Alan Cullen
9th Jul 2007, 11:40 pm
Sure, here's a DWG file with examples attached. :)
Styk.....
How do you attach files that way to your posts......o:)
StykFacE
10th Jul 2007, 02:58 pm
when you make a Reply (not a Quick Reply) and you scroll down a bit, there's an attachment manager. :wink:
Alan Cullen
10th Jul 2007, 03:18 pm
Cheers, mate, I'll try that next time I have to.......
SLW210
10th Jul 2007, 03:33 pm
Styk.....
How do you attach files that way to your posts......o:)
How long have you been around here?
Alan Cullen
10th Jul 2007, 03:41 pm
How long have you been around here?
Yeah.....hell......I'm caught out.......guilty.........SLW210, you and I are one day going to have to get into a bottle of Bundy and sort this out..........prick.......in my defence, I've never had to post a file before.......so I don't know how........okay, I'm an idiot :oops: .....but I do try hard........:twisted:
SLW210
10th Jul 2007, 03:46 pm
Yeah.....hell......I'm caught out.......guilty.........SLW210, you and I are one day going to have to get into a bottle of Bundy and sort this out..........prick.......in my defence, I've never had to post a file before.......so I don't know how........okay, I'm an idiot :oops: .....but I do try hard........:twisted:
No worries mate, we all have that happen. I WILL take you up on the bottle of Bundy. :thumbsup:
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.