Page Number Macro Question


DRyeHD
 Share

Go to solution Solved by Alaskan_Son,

Recommended Posts

I have a total of 14 possible layout pages I use.  I have my layout pages defined using the # sign.  On my "0" layout page I use %page.print% for the page number and %numpages% to get the total number of pages.  I don't always use all 14 pages but would rather not delete them from the client layout file in case they decide they want additional pages later.  So, as it is, even if I just need six pages the number 14 displays (see attachment).  Is there a way to get that macro to reflect the number of pages used in my layout schedule or the number of actual pages that I will print?  Also, is there an easier way to select which pages display in the layout table than opening each layout page and editing each one's layout page information (like a list of layout pages you could pull up and select/deselect the two checkboxes on this DBX?

PageNumbers.jpg

Link to comment
Share on other sites

6 minutes ago, DRyeHD said:

Is there a way to get that macro to reflect the number of pages used in my layout schedule or the number of actual pages that I will print?

 

You should only get the number of printed pages as long as your remaining pages are empty.  Do you have objects placed onto your extra pages?

Link to comment
Share on other sites

1 hour ago, DRyeHD said:

Is there a way to get that macro to reflect the number of pages used in my layout

I use %numpages% this gives number of printed pages. 
example:  %page% of %numpages% 

(but check “use as page template” in the Layout Page Specification DBX for whatever pages you don’t want to print. 
 

Not sure if it’s the best way but it works. 
 

As for Layout Page Table just check or uncheck that option for the page in question while you’re in the same Layout Page Specification DBX. 

  • Upvote 1
Link to comment
Share on other sites

I've looked over my template with consideration of the advice given.  I made a couple of changes but the number of printed pages is still not what I need.  I do have information on nine pages; four of those nine I don't plan to use on this drawing but I don't want to delete the information in case the customer decides that they want an electrical plan (or something elsse) and I need that information.  In the current case, I would like the number of printed pages to reflect how many pages are in the set (which is five).

 

I understand what the macro is doing so I either need a macro that will do what I need or to use a different process for my notes (like putting them in a CAD Detail and pulling them onto a layout page as required).  What do you all suggest?

SamplePage.jpg

Link to comment
Share on other sites

I think what a person needs is the ability to place layout boxes on layers. Then you could simple place unused items on their own layer and turn them off if they won't be used.

In the meantime, maybe you could place those items in a layout CAD detail, using cut / paste. That'd be really quick to do and really quick to add back into layout if needed.

Link to comment
Share on other sites

The CAD detail method may have to be the solution.

I'm not familiar with CA macros and Ruby (have been looking at it a bit in my spare time) but it seems if I have a layout table that identifies five pages, there should be a macro that could extract that information and put it into usable text.

Link to comment
Share on other sites

  • Solution
15 minutes ago, DRyeHD said:

The CAD detail method may have to be the solution.

I'm not familiar with CA macros and Ruby (have been looking at it a bit in my spare time) but it seems if I have a layout table that identifies five pages, there should be a macro that could extract that information and put it into usable text.

 

I could probably write you a custom macros for this purpose, but there are a couple easier options.  @Michael_Gia already mentioned one of them when he said...

16 hours ago, Michael_Gia said:

check “use as page template” in the Layout Page Specification DBX for whatever pages you don’t want to print. 

 

Another much easier option is to simply place the desired numbers of pages manually.  Yes, its an extra step, but its pretty easy to just enter the number you want instead of jumping through all the hoops required for other methods. 

Link to comment
Share on other sites

@builtright3, that looks like it should work.  Will they know the background behind it and how it's supposed to work?  Per my requirement, I wanted a macro that would display the total number of pages for that particular drawing based on the total number of pages in the Layout Page Table.  I've never put in a suggestion.    If it could just be a checkbox as you suggest, that would be great.  Thanks!

 

Link to comment
Share on other sites

5 minutes ago, DRyeHD said:

@builtright3, that looks like it should work.  Will they know the background behind it and how it's supposed to work?  Per my requirement, I wanted a macro that would display the total number of pages for that particular drawing based on the total number of pages in the Layout Page Table.  I've never put in a suggestion.    If it could just be a checkbox as you suggest, that would be great.  Thanks!

 

 

Add your request to the same suggestion thread

Link to comment
Share on other sites

2 hours ago, builtright3 said:

I guess this is what we need from Chief to add

image.thumb.png.84e12be2f5411b450ea11034cf306007.png

 

I'm not so sure this would address the issue being discussed.  We can already control which pages get printed in the Print dialog and as has already been mentioned we can also exclude pages by setting to Use as Page Template.  What I think we really need is a Make Page Inactive checkbox that essentially just causes Chief to ignore the page entirely without breaking its link to the proper Template.  Ideally this would be available on Right Click from the Project Browser as well. 

  • Like 1
  • Upvote 1
Link to comment
Share on other sites

12 minutes ago, Alaskan_Son said:

 

I'm not so sure this would address the issue being discussed.  We can already control which pages get printed in the Print dialog and as has already been mentioned we can also exclude pages by setting to Use as Page Template.  What I think we really need is a Make Page Inactive checkbox that essentially just causes Chief to ignore the page entirely without breaking its link to the proper Template.  Ideally this would be available on Right Click from the Project Browser as well. 


I'm basically saying the same thing but the way you say it may a better way to say it.
Thank You

Link to comment
Share on other sites

4 minutes ago, Alchemyjim said:

Does this not work?

Capture.PNG

 

No, we are talking about when you print. When you exclude it will still print it unless you exclude the pages in the print dialog box. The additional box would save having to enter the pages in the print dialog box.

 

  • Upvote 1
Link to comment
Share on other sites

There are many ways to accomplish the same thing.  I've spent some time today creating CAD Details for each of my notes (labeling the CAD Detail according to what page it goes on) and deleting information off my pages (1-14).  As @Alaskan_Son mentioned earlier, when you do this, the %numpages% is correct.  It probably depends on how the CA programers (or experts) have decided it should work.

 

I think this might be the best approach I've heard so far during this discussion:

44 minutes ago, Alaskan_Son said:

 

I'm not so sure this would address the issue being discussed.  We can already control which pages get printed in the Print dialog and as has already been mentioned we can also exclude pages by setting to Use as Page Template.  What I think we really need is a Make Page Inactive checkbox that essentially just causes Chief to ignore the page entirely without breaking its link to the proper Template.  Ideally this would be available on Right Click from the Project Browser as well. 

 

1 hour ago, builtright3 said:

 

Add your request to the same suggestion thread

@builtright3, will do.

Link to comment
Share on other sites

Actually, there should be a separate “Publishing Set” in the project browser. 
 

You would drag the pages you want to print into a Publishing Set, give it a name like “Engineers Copy” and print that set. 
 

This way you can have multiple sets going out to different people that all pull from you Layout Set and be updated live as you make changes. 
Then you could batch print different sets at the same time. Example, Engineer Sets, Client Set, City Set. 
 

(I stole this from another software which I will not mention because it annoys people]

  • Upvote 3
Link to comment
Share on other sites

I like this idea. only one template to keep up to date. And one could prebuild the sets. I often throw camera images on the layout just for the client to see. the city doesnt care, so today I put the images at the back so I can more easily control the printing.

 

It would also be nice if CA remembered the last print range

  • Upvote 2
Link to comment
Share on other sites

16 hours ago, Michael_Gia said:

Actually, there should be a separate “Publishing Set” in the project browser. 
 

You would drag the pages you want to print into a Publishing Set, give it a name like “Engineers Copy” and print that set. 
 

This way you can have multiple sets going out to different people that all pull from you Layout Set and be updated live as you make changes. 
Then you could batch print different sets at the same time. Example, Engineer Sets, Client Set, City Set. 
 

(I stole this from another software which I will not mention because it annoys people]

 

I like it but how would you handle call-out and other page references?

Link to comment
Share on other sites

15 hours ago, SH_Canada said:

It would also be nice if CA remembered the last print range

 

It's weird. In my experience, Chief will remember the last used print range... for a few weeks or months. Then, for a few weeks/months it will forget it and default to only the current page. Then after a few weeks or months it reverts. I change nothing. Lol

Link to comment
Share on other sites

interesting, I have a plan where when I go to print shows pages 1-10, 12-14 or something like that. I typically will print 1-8, so I type in 1-8. but the next time I print it still shows 1-10, 12-14 in the pages to print

 

seems to be the case even if the print range is 1-10, and I only print say page 1-5, the next time it is 1-10

Link to comment
Share on other sites

4 hours ago, Chrisb222 said:

like it but how would you handle call-out and other page references?


Not a software engineer, but I assume the relationship between a Layout File and a Publishing Set would be a two-way street, where the layout file sends the most current and up to date sheet to the publishing set and the publishing set sends back info as to what page those sheets are on.

 

end loop?…haha. 
There, I just wrote the sub program. 

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

  • Member Statistics

    32364
    Total Members
    9156
    Most Online
    Optimum_Moving
    Newest Member
    Optimum_Moving
    Joined
  • Similar Content

    • By Allen43
      I'll new to Chief and have learned that this form might be one of the best resources I have ever used. I am trying to streamline my design process and to do that I would love to be able to change cabinet ends to finished or paneled faster and easier. I tried to make a SP to do this, but I couldn't figure it out. I also thought that there might be a way to do this with macros is a SP, but I know even less about macros than I do Chief.
       
      Any help is appreciated, and if it's not possible that's fine I'll know not to spend more time on this.
    • By tlinder
      I'm trying to run a .rb file that's on my local in CA by using a marco. Right now I can only get it to read the file. Does anyone have any insight on how I might be able to to this or where I need to look?
       
      Macro: In CA
      File.read("C:/Users - Desktop/scope1.rb")
       
       
      Output: from text stored on a local drive
      rafter_length = (length.to_f.round / 12) + 1
      convert_to_int =  rafter_length.even?
      case
        when convert_to_int == true
        resut = rafter_length
        when convert_to_int == false
        result = rafter_length +1
      end
       

       
    • By wazzubrad
      Guys, I am starting to find some of the limitations that I see discussed in the forums and am wondering if this is one of those. The current plan I am working on has various footing widths and depths specified by the engineer for the foundation walls. While trying to create a wall schedule that will show each wall based on footing width and depth and when I look at the available macro's under Object Properties for a macro I don't see anything specific to the footing depth. Anyone know if this property exists for a foundation wall?
       

    • By Doug_N
      My projects are increasingly moving into the digital submission world.  In digital format, various municipalities are setting up criteria for acceptable submission standards that are divergent.  That is to say, each municipality is reinventing the wheel.  So far as I can tell, no two municipalities have adopted the same submission standards, and so submission has become a major task up from a simple formality.
       
      The Province of Ontaria adopted a standard method for submission of paper documents.
       
      1) Fill out the mandated building permit form (mandated by the Ontario Building Code Act) that all municipalities had to accept.
      2) Provide at least 2 copies of the drawings in whatever scale is shown on the drawing. 
      3) Pay the fee by cash or cheque
       
      Simple and pretty much the same everywhere.
       
      Electronic Submission Nightmare
       
      Easiest. 
      1) Same as 1 above in PDF
      2) Same as 2 above except one PDF file (PDF must not exceed 5meg. Limit for most email servers)
      3) Same as 3 above but email Interac transfer
      4) Reply to comments from the plan examiner sent by email.  Send revised pages to the examiner in PDF
       
      Hardest:
      1) Create an on-line account with the municipality
      2) Fill out an on- line application form
      3) Register all parties (Owner and Agent at a minimum) and these people also have to participate in the on-line experience.
      4) Create individual PDF files for each drawing page to be submitted
            a) Each page to have proscribed blank area (2" x 5") for municipal stamps and comments,
            b) Each page to have a name that corresponds to the title block name
            c) Each PDF to be in vector format.  Raster format is not acceptable. (CA does not support vector PDF)  I suspect the vector PDF would be much smaller than a raster PDF)
            e) Each page has to be a flattened file, no layers
            d) Each page must not have any security features that would prevent editing or commenting (try to convince an Engineer who has stamped the drawing to do this!)
            f)  PDF file size must not exceed (put in some arbitrary limit here.)   
      5) Pay the fees as required, usually on line,
      6) Try to understand the matrix of comments that contain examiner's comments.
      7) Upload revised drawing.
      8) Comment on the examiner's matrix table. 
       
      As a result of all of this I have been experimenting with PDF print drivers, and Winzip PDF Compressor.
       

       
      My hat is off to the programmers at CA!   The PDF print driver included with CA out performs all of the other print drivers that I have installed on my computer for file size.  
       
      Now if only I could automatically print, as a batch, all drawing files with an automatic link to the layout page title and page number or label.  That would be amazing.  
      I wonder if some of that might be achieved in Ruby?  If CA made a printing template that allowed for individual pages as a batch print?
       
       
       
    • By Renerabbitt
      Do you have 10+ years in the software and wonder if you've been missing some tips and tricks? Have you been able to break the 15 hour condoc set?
      Maybe you are a proficient user that wants to know everything that there is to know in Chief.
      Rendering, Automation, Resources, Symbols, Quick Tools, Style Pallets, PDF Tools, Templates, and more.

      We believe in lifting the community up. All of our tools and resources are available to you. With training that can be personal, team oriented, prerecorded, livestreamed, interactive. We offer training in over 15 softwares from Drafting and Detailing to Modeling, Advanced Texturing, Procedural Workflows, Node Based Design, Macro Creations, DAMs, Automation, VR Workflows, Streaming Overlays and Masks and much much more. Tell us your needs and we will connect you with the package or the right resource.

      Some example learning modules:
      Concentric Jump your dimension strings
      Enter-input your jumps and Enter-close your DBX's
      Snap jump your door widths, concentric jump your windows
      Alt behavior tips, contain-selection and deselection workflows with tool restrictions. 
      Tons of cabinet tools and tips, including custom one-off parametrically modelled vanities and more.
      Custom Toolbar Icons and Custom Library Objects.
      Toolbar Switching Tricks and Library workflows


       
      Other Offer Services Posts: