Print Page | Close Window

Blocks

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=3875
Printed Date: 30.Sep.2026 at 07:11


Topic: Blocks
Posted By: NorthLan
Subject: Blocks
Date Posted: 15.Jun.2010 at 11:00

Does anyone know if it is possible to create 2 block references within the same block. I am trying to create a block template that will automatically display both the filename and date. Also is it possible for the blocks to update themselves within a dwt without having to refresh them every new day?

Thanks for your help.



Replies:
Posted By: Cad64
Date Posted: 20.Jun.2010 at 16:33
You can use a FIELD to insert a dynamic date and filename that will automatically update as necessary.
 
Or you can use the old RTEXT diesel expressions. Also dynamic and automatically updated.
Date = $(edtime,0,MON DD"," YYYY)
Date & Time = $(edtime,0,MON DD"," YYYY - H:MMam/pm)
Filename =  $(getvar, "dwgname")
File Path & Filename= $(getvar, "dwgprefix")$(getvar, "dwgname")
 
To use Rtext, type RTEXT at the command line and then choose "Diesel" from the list of options. This will open a little text window where you can copy and paste the code above.


-------------
Online Portfolio: http://www.rdeweese.com/" rel="nofollow - http://www.rdeweese.com/


Posted By: NorthLan
Date Posted: 21.Jun.2010 at 10:09
Thanks that works well, do you know how I could then imbed these within a block to make them editable as an attribute?


Posted By: Zupmicher
Date Posted: 12.Jul.2010 at 20:11

Well I think your question was solved in part. To have a sort of base block is updated automatically with each change, beginning and end can act as more users, the solution is to block reference system.




Print Page | Close Window