CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Annotation

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-25-2016, 07:54 AM
cacciatorino cacciatorino is offline
Registered User
 
Join Date: Dec 2011
Location: Central Italy
Posts: 8
Macro for ISO Tol and V18

I have found a macro that adds +/- tolerances on dimensions, based on ISO Tables.

The macro is actually made by two lisps that work joined: the first ones contains the code itself, and the second one contains the ISO tables.

The macro work well with V16, while it does not work with V18:

Code:
Errore LISP: The function AUTONATIONAL::AM_DIM_ADD_FIXTEXT is undefined
Any suggestions?
Attached Files
File Type: zip ISO_TOL.zip (10.5 KB, 571 views)
Reply With Quote
  #2  
Old 01-28-2016, 05:03 AM
andrea andrea is offline
Registered User
 
Join Date: Sep 2003
Location: italy
Posts: 261
Re: Macro for ISO Tol and V18

the command :
AM_DIM_ADD_FIXTEXT
Obsolete. Replaced with :
AM_DIM_PROPS

those who know the syntax of the new command?
Reply With Quote
  #3  
Old 01-29-2016, 03:25 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Re: Macro for ISO Tol and V18

Just run the recorder while you execute the command to learn about the parameters ;-) (See http://www.clausbrod.de/CoCreateModeling/MacroModelClipping for some hints.)

Also, the discussion at http://forum.cad.de/foren/ubb/Forum92/HTML/000809.shtml revolves around issues related to a piece of code which happens to use am_dim_props, so you may be able to glimpse some hints from there as well.
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote
  #4  
Old 02-06-2016, 02:19 AM
cacciatorino cacciatorino is offline
Registered User
 
Join Date: Dec 2011
Location: Central Italy
Posts: 8
Re: Macro for ISO Tol and V18

Quote:
Originally Posted by andrea View Post
the command :
AM_DIM_ADD_FIXTEXT
Obsolete. Replaced with :
AM_DIM_PROPS

those who know the syntax of the new command?
Quote:
Originally Posted by clausb View Post
Just run the recorder while you execute the command to learn about the parameters ;-) (See http://www.clausbrod.de/CoCreateModeling/MacroModelClipping for some hints.)

Also, the discussion at http://forum.cad.de/foren/ubb/Forum92/HTML/000809.shtml revolves around issues related to a piece of code which happens to use am_dim_props, so you may be able to glimpse some hints from there as well.
I did a try with the macro-recorder and this is the result:

Code:
;; encoding: UTF-8
;%RECORDING-BEGIN  at  12:16:18  02/06/2016
;%SD-VERSION: Creo Elements/Direct Modeling 18.1 (x64 edition) (18.1.6.32)
;! Nota: i contenuti di questo file potrebbero non essere pił supportati nelle prossime versioni di Creo Elements/Direct Modeling.
preselect
( docu::DOCU-PROCESS-DIRECT-PICK 27.6989751947994 242.850399471781 )
(gpntdocu 27.698975194799399 242.850399471781 "Annotation")
( docu::DOCU-PROCESS-BUTTON-2-3 'Button3 )
(frame2::set-record-status :suspend)
set_pers_context "Toolbar-relative"
am_dim_props
:page :tolerance
(get-matching-preselected-objects)
:display_ui :dim_list
:page :tolerance
:TOL_TYPE
:UPPER_LOWER
:tol_upper 0.050000000000000003
:tol_lower 0.01
cancel
preselect
;%RECORDING-END  at  12:16:34  02/06/2016
but I guess that the part of the code that does not work is when the first lisp (the one with the code itself) calls the second lisp (the one that contains the iso tables).
Reply With Quote
  #5  
Old 02-07-2016, 11:29 PM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
Re: Macro for ISO Tol and V18

In recent versions of Creo Elements/Direct Modeling, when you enter AM_DIM_ADD_FIXTEXT after activating Annotation, you get "AM_DIM_ADD_FIXTEST is unbound". Entering AM_DIM_PROPS, however, works as expected.

So apparently, AM_DIM_ADD_FIXTEXT simply does not exist anymore in recent versions. Hence, in this case they really meant what they said when documenting AM_DIM_ADD_FIXTEST as obsolete in documentation ;-)
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:55 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.