Latest topics
» PIPING 1 - MOOVING & CONNECT
Wed 8 Jul - 10:25 by nurkholis

» DATAL TOOLBAR
Wed 22 Oct - 19:15 by Luft

» COLOR FOLLOWING
Fri 22 Aug - 5:39 by etudiant

» Regarding Draft Auto Drawing Production
Fri 13 Jun - 15:18 by yeshwant83

» CODE FOR TRANSFORM PANE TO EXTR OR EXTR TO PANE
Mon 12 May - 19:55 by nurkholis

» code for apply the layer att to his members
Thu 10 Apr - 12:11 by nurkholis

» CODE FOR REVERSE START & END OF SCTN
Mon 7 Apr - 12:13 by nurkholis

» Available soon
Sat 8 Feb - 20:58 by Julien

» CREATE NEG. OF PANEL WITHIN THE SCTN
Wed 4 Dec - 14:53 by Julien

October 2017
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Calendar Calendar

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 25 on Fri 27 Dec - 14:00

code for apply the layer att to his members

View previous topic View next topic Go down

code for apply the layer att to his members

Post by Julien on Fri 8 Nov - 16:27

applicable when you want change the color or line type of glab, slab or ldim after creation.
 
copy paste the code below in .txt file and drag & drop the txt file in draft command line when you are on view CE.
 
Code:
--C.E. MUST BE VIEW--
VAR !TYPE TYPE
IF '$!TYPE' NEQ 'VIEW' THEN
view
HANDLE (2,111)
GOLABEL /MESS
ENDHANDLE
GOLABEL /CONTINUE
LABEL /MESS
!!Alert.MESSAGE('CE MUST BE A VIEW')
GOLABEL /END
ENDIF
--C.E. MUST BE VIEW--
LABEL /CONTINUE
VAR !LAYER collect all LAYER FOR CE
DO !LISTLAYER value !LAYER
  VAR !NOMLAYER name of $!LISTLAYER
OLD $!NOMLAYER
VAR !DIMAFterminator  Fterminator
VAR !DIMANtext        Ntext
HANDLE (41,232)
ENDHANDLE
VAR !DIMATxcolour      Txcolour
HANDLE (41,232)
ENDHANDLE
VAR !DIMANLStyle      NLStyle
HANDLE (41,232)
ENDHANDLE
VAR !DIMANLColour      NLColour 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAFStyle        FStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAFColour      FColour
HANDLE (41,232)
ENDHANDLE
VAR !DIMALLStyle      LLStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMALLColour      LLColour 
HANDLE (41,232)
ENDHANDLE
VAR !DIMALFStyle      LFStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMALFColour      LFColour 
HANDLE (41,232)
ENDHANDLE
VAR !DIMADLStyle      DLStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMADLColour      DLColour 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAPLStyle      PLStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAPLColour      PLColour 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAMStyle        MStyle 
HANDLE (41,232)
ENDHANDLE
VAR !DIMAMColour      MColour
HANDLE (41,232)
ENDHANDLE
VAR !DIMACHStyle      CHStyle
HANDLE (41,232)
ENDHANDLE
VAR !DIMACHColour      CHColour
HANDLE (41,232)
ENDHANDLE
VAR !MEM collect all FOR CE
DO !LISTMEM value !MEM
  VAR !NOMMEM name of $!LISTMEM
OLD $!NOMMEM
Fterminator  $!DIMAFterminator
HANDLE (41,232)
ENDHANDLE
Ntext        $!DIMANtext 
HANDLE (41,232)
ENDHANDLE   
Txcolour      $!DIMATxcolour 
HANDLE (41,232)
ENDHANDLE
NLStyle      $!DIMANLStyle   
HANDLE (41,232)
ENDHANDLE
NLColour      $!DIMANLColour 
HANDLE (41,232)
ENDHANDLE
FStyle        $!DIMAFStyle   
HANDLE (41,232)
ENDHANDLE
FColour      $!DIMAFColour   
HANDLE (41,232)
ENDHANDLE
LLStyle      $!DIMALLStyle   
HANDLE (41,232)
ENDHANDLE
LLColour      $!DIMALLColour 
HANDLE (41,232)
ENDHANDLE
LFStyle      $!DIMALFStyle 
HANDLE (41,232)
ENDHANDLE
LFColour      $!DIMALFColour 
HANDLE (41,232)
ENDHANDLE
DLStyle      $!DIMADLStyle 
HANDLE (41,232)
ENDHANDLE
DLColour      $!DIMADLColour 
HANDLE (41,232)
ENDHANDLE
PLStyle      $!DIMAPLStyle   
HANDLE (41,232)
ENDHANDLE
PLColour      $!DIMAPLColour 
HANDLE (41,232)
ENDHANDLE
MStyle        $!DIMAMStyle   
HANDLE (41,232)
ENDHANDLE
MColour      $!DIMAMColour   
HANDLE (41,232)
ENDHANDLE
CHStyle      $!DIMACHStyle   
HANDLE (41,232)
ENDHANDLE
CHColour      $!DIMACHColour 
HANDLE (41,232)
ENDHANDLE
ENDDO
ENDDO
LABEL /END
avatar
Julien
Admin

Messages : 34
Date d'inscription : 2013-08-08

View user profile http://macrojgl.forumactif.org

Back to top Go down

Re: code for apply the layer att to his members

Post by nurkholis on Mon 7 Apr - 12:20

hi julien,


i had copied and paste ur code as macro but something error.Could u save the problem


regard,



nur

nurkholis

Messages : 7
Date d'inscription : 2014-04-01

View user profile

Back to top Go down

error

Post by nurkholis on Mon 7 Apr - 12:21

Julien wrote:applicable when you want change the color or line type of glab, slab or ldim after creation.
 
copy paste the code below in .txt file and drag & drop the txt file in draft command line when you are on view CE.
 
Code:
--C.E. MUST BE VIEW--
VAR !TYPE TYPE
IF '$!TYPE' NEQ 'VIEW' THEN
view
HANDLE (2,111)
GOLABEL /MESS
ENDHANDLE
GOLABEL /CONTINUE
LABEL /MESS
!!Alert.MESSAGE('CE MUST BE A VIEW')
GOLABEL /END
ENDIF
--C.E. MUST BE VIEW--
LABEL /CONTINUE
VAR !LAYER collect all LAYER FOR CE
DO !LISTLAYER value !LAYER
  VAR !NOMLAYER name of $!LISTLAYER
OLD $!NOMLAYER
VAR !DIMAFterminator   Fterminator
VAR !DIMANtext         Ntext
HANDLE (41,232)
ENDHANDLE
VAR !DIMATxcolour      Txcolour
HANDLE (41,232)
ENDHANDLE
VAR !DIMANLStyle       NLStyle
HANDLE (41,232)
ENDHANDLE
VAR !DIMANLColour      NLColour  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAFStyle        FStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAFColour       FColour
HANDLE (41,232)
ENDHANDLE
VAR !DIMALLStyle       LLStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMALLColour      LLColour  
HANDLE (41,232)
ENDHANDLE
VAR !DIMALFStyle       LFStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMALFColour      LFColour  
HANDLE (41,232)
ENDHANDLE
VAR !DIMADLStyle       DLStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMADLColour      DLColour  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAPLStyle       PLStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAPLColour      PLColour  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAMStyle        MStyle  
HANDLE (41,232)
ENDHANDLE
VAR !DIMAMColour       MColour
HANDLE (41,232)
ENDHANDLE
VAR !DIMACHStyle       CHStyle
HANDLE (41,232)
ENDHANDLE
VAR !DIMACHColour      CHColour
HANDLE (41,232)
ENDHANDLE
VAR !MEM collect all FOR CE
DO !LISTMEM value !MEM
  VAR !NOMMEM name of $!LISTMEM
OLD $!NOMMEM
Fterminator   $!DIMAFterminator
HANDLE (41,232)
ENDHANDLE
Ntext         $!DIMANtext  
HANDLE (41,232)
ENDHANDLE    
Txcolour      $!DIMATxcolour  
HANDLE (41,232)
ENDHANDLE
NLStyle       $!DIMANLStyle    
HANDLE (41,232)
ENDHANDLE
NLColour      $!DIMANLColour  
HANDLE (41,232)
ENDHANDLE
FStyle        $!DIMAFStyle    
HANDLE (41,232)
ENDHANDLE
FColour       $!DIMAFColour    
HANDLE (41,232)
ENDHANDLE
LLStyle       $!DIMALLStyle    
HANDLE (41,232)
ENDHANDLE
LLColour      $!DIMALLColour  
HANDLE (41,232)
ENDHANDLE
LFStyle       $!DIMALFStyle  
HANDLE (41,232)
ENDHANDLE
LFColour      $!DIMALFColour  
HANDLE (41,232)
ENDHANDLE
DLStyle       $!DIMADLStyle  
HANDLE (41,232)
ENDHANDLE
DLColour      $!DIMADLColour  
HANDLE (41,232)
ENDHANDLE
PLStyle       $!DIMAPLStyle    
HANDLE (41,232)
ENDHANDLE
PLColour      $!DIMAPLColour  
HANDLE (41,232)
ENDHANDLE
MStyle        $!DIMAMStyle    
HANDLE (41,232)
ENDHANDLE
MColour       $!DIMAMColour    
HANDLE (41,232)
ENDHANDLE
CHStyle       $!DIMACHStyle    
HANDLE (41,232)
ENDHANDLE
CHColour      $!DIMACHColour  
HANDLE (41,232)
ENDHANDLE
ENDDO
ENDDO
LABEL /END

nurkholis

Messages : 7
Date d'inscription : 2014-04-01

View user profile

Back to top Go down

error

Post by nurkholis on Thu 10 Apr - 12:11

ok thank a lot Julien.you are the man




nur

nurkholis

Messages : 7
Date d'inscription : 2014-04-01

View user profile

Back to top Go down

Re: code for apply the layer att to his members

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum