CADTutor: The best free help for AutoCAD on the web

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Go Back   AutoCAD Forums > AutoCAD > AutoLISP, VBA, the CUI & Customisation

Reply
 
Thread Tools
Old 3rd Nov 2009, 09:57 pm   #1
NZ Steve
Forum Newbie
 
Using: AutoCAD 2009
 
Join Date: Oct 2009
Location: Hamilton, New Zealand
Posts: 5
Default GATTE not working like it should

Any of you guys seen this?

I am trying to use the GATTE command that I have been using for YEARS!!

If if pick the block I get this

Command: gatte
Initializing...
Select block or attribute [Block name]:
Block: Meridian_a1_sheet Attribute tag: TUK-SUB-TY-NO
Enter new text: *Cancel*

and I can then type in the changes


Command: `*Cancel*

if I try to do it on the command line - I get this
Command: GATTE
Select block or attribute [Block name]: b
Enter block name: Meridian_a1_sheet
Known tag names for block: REV_6_DATE REV_6_APP REV_6_CONTRACT REV_6_COMPANY
REV_6_CHECKED_BY REV_6_BY REV_6_DETAIL REV_6 REV_5_DATE REV_5_APP
REV_5_CONTRACT REV_5_COMPANY REV_5_CHECKED_BY REV_5_BY REV_5_DETAIL REV_5
REV_4_DATE REV_4_APP REV_4_CONTRACT REV_4_COMPANY REV_4_CHECKED_BY REV_4_BY
REV_4_DETAIL REV_4 REV_3_DATE REV_3_APP REV_3_CONTRACT REV_3_COMPANY
REV_3_CHECKED_BY REV_3_BY REV_3_DETAIL REV_3 REV_2_DATE REV_2_APP
REV_2_CONTRACT REV_2_COMPANY REV_2_CHECKED_BY REV_2_BY REV_2_DETAIL REV_2
REV_1_DATE REV_1_APP REV_1_CONTRACT REV_1_COMPANY REV_1_CHECKED_BY REV_1_BY
REV_1_DETAIL REV_1 REV_MAIN SUP-DWG-NAME SUPPLIER_NUMBER DESIGNER TUK-SUB-TY-NO
TITLE_3 TITLE_2 TITLE_1 PROJECT_NAME
Select attribute or type attribute name: project_name


*Invalid selection*
Expects a point or RE

I was very confused as what is RE? but its the first two characters of REV_6_DATE in the list of known tags sometimes I get a list like REV_6_DATE/REV_6_APP/REV_6_CON but even then typing in REV_6_DATE does not enter the text into that attribute tab - whats gone wrong with GATTE in MAP2009

Steve Muller
New Zealand
NZ Steve is offline   Reply With Quote
Old 4th Nov 2009, 04:45 am   #2
NZ Steve
Forum Newbie
 
Using: AutoCAD 2009
 
Join Date: Oct 2009
Location: Hamilton, New Zealand
Posts: 5
Default

Having compared some other files the only thing different I can see is the Variable DBMOD. - though this is a read only variable.
NZ Steve is offline   Reply With Quote
Old 4th Nov 2009, 05:38 am   #3
SteveK
Senior Member
 
Using: AutoCAD 2010
 
Join Date: Mar 2009
Location: Brisbane, Australia
Posts: 251
Default

Hello,

When it comes up with Expects a point or RE basically it is the start of your list of attributes but it can't fit it on the screen.
eg. if you type
Code:
(initget "Hello there")
(nentselp)
"w"
It will return Expects a point or hello/ther.

As for your other GATTE trouble, you might have to post the drawing (if it's small).

SteveK is offline   Reply With Quote
Old 4th Nov 2009, 08:57 pm   #4
NZ Steve
Forum Newbie
 
Using: AutoCAD 2009
 
Join Date: Oct 2009
Location: Hamilton, New Zealand
Posts: 5
Default

Yup Steve - it sure does
Select object: "w"
*Invalid selection*
Expects a point or Hello/ther

Drawing attached.

Cheers

Steve Muller
Attached Files
File Type: dwg gatte-dwg.dwg (74.5 KB, 6 views)
NZ Steve is offline   Reply With Quote
Old 4th Nov 2009, 10:42 pm   #5
NZ Steve
Forum Newbie
 
Using: AutoCAD 2009
 
Join Date: Oct 2009
Location: Hamilton, New Zealand
Posts: 5
Default

OK - its something to do with the DWG not my system. I inserted another companies title block into the same DWG above and I can use GATTE like its spoze to. Steve M
NZ Steve is offline   Reply With Quote
Old 4th Nov 2009, 10:44 pm   #6
SteveK
Senior Member
 
Using: AutoCAD 2010
 
Join Date: Mar 2009
Location: Brisbane, Australia
Posts: 251
Default

Hi, Further digging around in the help file for initget has found the source of the problem:
Each keyword can contain only letters, numbers, and hyphens (-).
For example:
Code:
(initget "hel_lo there")
(nentsel)
"he"
will output:
*Invalid selection*
Expects a point or he


Gatte uses this. So alternatives for you are to either select the attribute (rather than the block) or I made a program called gatte2 which doesn't use initget you might try instead.

SteveK is offline   Reply With Quote
Old 4th Nov 2009, 11:51 pm   #7
NZ Steve
Forum Newbie
 
Using: AutoCAD 2009
 
Join Date: Oct 2009
Location: Hamilton, New Zealand
Posts: 5
Default

Yup - correct all the attributes in the titles are like DFD_No_10 - looks like a little edit time for me - thanks muchly Steve M
NZ Steve is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GATTE 2 (Global Attribute Edit with Layout Select) SteveK AutoLISP, VBA, the CUI & Customisation 6 5th Oct 2009 11:31 pm
GATTE not Working nocturne00 AutoCAD Drawing Management & Output 1 24th Sep 2008 09:18 am
Looking for a working 286/386 Between the Lines AutoCAD RSS Feeds 0 31st Aug 2007 08:01 pm
Why isn't this working? Baçon AutoLISP, VBA, the CUI & Customisation 3 18th May 2005 10:17 pm

Why Donate?


All times are GMT +1. The time now is 11:57 am.

RSS Feed for AutoCAD ForumsValid XHTML 1.0!Valid CSS!Creative Commons Licence