Forum Replies Created

Page 14 of 15
  • Isaac Harned

    Member
    January 4, 2023 at 5:21 pm in reply to: Visual Basic coding, Cells to Form Fields export
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Sorry for the delay, I seem to be creating a mountain of volunteer projects 😬.

    Long story short, there is a customizable PDF form that I am creating (discussion is here: https://uchapter2.com/brainery/javascript/forum/topic/isaac-harned-here-for-forms-with-javascript/#post-135307), but not everyone in the office enjoys entering data on the PDF, which is understandable with the loss of keyboard flexibility. Once it’s in the field it is actually much more workable on ipad. As an option for the office, I am basically creating an input form.

    +1
  • Isaac Harned

    Member
    November 15, 2022 at 9:32 am in reply to: Hardware Setup
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Personally, for none other than comfort and accuracy, I love the Logi ergonomic (K860 keyboard, MX master 3S combo set). Both are Bluetooth capable and can switch between three devices. Mouse has a free spin wheel, so you can scroll through those long construction docs fast. Also has a side scroll wheel for a little more customization, couple extra buttons that can be customized for specific apps through the logi control panel. Keyboard clicks are smooth and quiet, yet have a solid almost mechanical click. Both are the most comfortable I have used yet, especially if you are at the station the entire work day.

    +4
  • Isaac Harned

    Member
    October 27, 2022 at 5:12 pm in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Form is 100% working, not crashing, and is fast as all get out.

    Attached is the working file, all code is placed inside of each dropdown.

    Still a little confused on how the layers turn off their print setting, but the issue there is probably not code related.

    Can’t thank you enough @lizlarsen , let me know what you think of the modifications I made for the individual dropdown code!

    +2
  • Isaac Harned

    Member
    October 26, 2022 at 5:00 pm in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    The struggle continues, Children layers do not want to activate and deactivate.

    I have tried switching tactics by using substrings to try and match some of these values, using the dash as a placeholder for values before and after. I attempt to grab before the dash to match with the parent, and after the dash to determine if the applicable “NumberOfTaps” dropdown signals the layer to be on or off. Nothing seems to be working on this front

    Now also having an issue where layers print settings turn off when I change the initState, even though these are set to “Use Default”. tried submitting this issue to Bluebeam, however they tell me they cannot provide assistance with custom code. I guess I must find a way to change the print setting for the layer as well. I have tried modifying the code so that it ONLY targets the initState, but this does not help.

    There is also now a third array of OCGs, this is to turn off all children of parents that have been deactivated. This one is also having the same difficulty as the other loop targeting children layers.

    I am getting no specific errors, except for the console displaying a single “false”

    +1
    • Isaac Harned

      Member
      October 26, 2022 at 7:02 pm in reply to: Isaac Harned – Here for forms with javascript
      Points: 8,204
      Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

      Here is the latest file with the dropdown coded, sorry for not getting this in earlier

      +1
  • Isaac Harned

    Member
    October 24, 2022 at 1:28 pm in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Here is the latest update to the code and the file. Major thanks to Liz for all the help!

    +3
  • Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Workflow could be to only allow those toolsets to be visible in the main working profile, then have a field profile to distribute with those tools not visible. I’m sure that’s already your workaround, but the best idea I had.

    +3
  • Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Agreed this is the best option, just comes with one little caveat:

    When exporting to a network location, Tool sets will be Locked, meaning that to make any changes to the set, user will basically have to unlock or check out the toolset. This can be annoying if you have a base set of tools that needs to change in minor ways along the process.

    In our situation, our markups involve alot of visual properties that might need to be changed as we go through highlighting ductwork (i.e. colors that don’t mesh well together or are harder to see through when ductwork overlaps). Our process was originally to store the toolsets on the network, but I would see little random tools added to my chest, or little properties modified in my base tools. It would be great if we could assign permissions to them, but unfortunately, anyone you give access to will be able to unlock it.

    What I do now is an export to local storage with dependencies into a folder. Then I manually move the folder to a shared location (it was not exported to the network location directly, so it will not have the lock). When setting up a new system, my training dashboard will instruct users how to manually copy that folder into their “AppData\Roaming\Bluebeam Software\Revu” \version folder, then they can open revu, import the profile, which will come with the tool chests. If a user wants to replace the toolset with the original, the folder will remain in the app data folder and can be dragged from the imported folder to the main “Revu/(version)” folder, and if there is an update to the Master file on the network, that toolset can be dragged directly to replace the same toolset. This eliminates the multistep re-import as long as they are named exactly the same.

    +1
  • Isaac Harned

    Member
    October 31, 2022 at 8:45 am in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Liz let me know that since this is not a pre-constructed regex, and the part being built to look for a digit is in quotations, JavaScript sees this as an escape character. In order to keep the expression intact, a second backslash was added to the digit search.

    +1
  • Isaac Harned

    Member
    October 28, 2022 at 5:03 pm in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    The solution to this was simply the page size. 11 x 17 does not give the font enough of a lower size range to adjust. I had to tell Bluebeam support why this was happening, and that their text boxes DO adjust vertically AND horizontally. 36 x 24 works just fine.

    🙄

    +2
  • Isaac Harned

    Member
    October 28, 2022 at 9:11 am in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Thank you Liz, super helpful!!!!!!

    +1
  • Isaac Harned

    Member
    October 28, 2022 at 9:10 am in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Also the line:

    let childMask = new RegExp(“^” + tap + “-[\\d]{1,2}$”);

    when I plug this into regex101, I get some weird search parameters. Never worked with the RegEx constructor, so please bear with me here =)

    So if the previous tap variable only stores the number at the end of the string (Let’s say NumberOfTaps1), then this would be constructed as such:

    /^1-[\\d]{1,2}$/

    The part that is tripping me up is the double slashes I think, what does this do to the digit search?

    +1
  • Isaac Harned

    Member
    October 28, 2022 at 8:57 am in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    So in the local code, the line:

    var tap = dropDownName.match(/\d{1,2}$/)

    Does this only store what is matched? I.e. it looks at NumberOfTaps1, and only stores the “1” since it matches the search for 1 or 2 digits at the end of the string?

    +1
  • Isaac Harned

    Member
    October 27, 2022 at 9:28 am in reply to: Isaac Harned – Here for forms with javascript
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Oh my goodness Liz, you are amazing. It works for sure!!

    I am still having the issue of the print setting for the layer toggling off and not back on, will test some more with that.

    I am going to work today to modify all the individual dropdowns so that expressions can be applied to all, but this is so fantastic!!

    Couple of small questions on the code:

    1. The regex variable tapsMask, is this to filter out all layers that are not associated with the terminal and tap dropdowns (i.e. RACH layers)?

    2. The double vertical bars, is this an OR statement? Seems like you are testing either the full fname OR the substring prior to the dash.

    I have attached a screenshot of the code with some detailed notes for anyone hoping to follow along, please feel free to correct me @lizlarsen if I misinterpret anything! The file below is the latest with the new code loaded into dropdown. Sub dropdowns have not been 100% coded yet, but check out how fast this file moves now!!!

    +1
  • Isaac Harned

    Member
    October 10, 2022 at 8:28 am in reply to:
    Points: 8,204
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Thank you David, and I will keep you guys posted on the Autosize!

    +1
Page 14 of 15