Trimble Business Center

 View Only
Expand all | Collapse all

Is there a way to find/replace text in TBC?  Maybe a macro?

  • 1.  Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-12-2020 12:26

    Other CAD programs (AutoCAD) have a "find" command that allows the user to search for text and replace it if needed.  Is there any way to do that in TBC?  Or is there a macro is available?



  • 2.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-13-2020 21:44

    I think you can go to properties and edit content there as in other Apps.

     

    Try and let me know.

     

    Thanks.



  • 3.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-15-2020 08:22

    Yes, the text can be edited in the Properties window.  But I'm looking for a way to search through an entire drawing for specific text, and then possibly replace it with other text.  The drawing might have hundreds of text objects that I want to search through.



  • 4.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-15-2020 21:16

    For search try "Advanced Search" command. You have logic available as a sub command wherein you can choose part or entire text etc. Select all of them, go to properties and replace the text.



  • 5.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-18-2020 18:04

    Hi Ted,

     

    Did you want to find-and-replace the entire text content of a text object? i.e. find all instances of "tree" and replace with "Tree"

     

    Or did you want to find-and-replace text within the content of a text object? i.e. find all instances of "pt" and replace with "Point" so that "pt 1" turns into "Point 1"  (Using Properties to change the text across multiple objects won't help in this case)

     

    Just curious if Advanced Select + Properties (as mentioned by Saif above) was exactly what you needed.

     

    Thanks,

    Quan Mueller

    Revenant Solutions | Trimble Community

    Independent TML Development - Build. Share. Grow.



  • 6.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-19-2020 12:42

    Hi Quan,

     

    Your second option (find all instances of "pt" and replace with "Point" so that "pt 1" turns into "Point 1") is more of what I’m looking for. An example for me might be that I have a few hundred text items that are in the form “F.F. = 87.8”. I would want to search all of them and replace the “F.F. =” with “FF”.



  • 7.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-23-2020 16:14

    Hi Ted,

    That's what I expected - so it surprised me that using Advanced Select + Properties was marked as the "Correct Answer".

    I have added "find-and-replace (within text content)" to our backlog.

    When we start working on this TML, would you be interested in helping to test it?



  • 8.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-23-2020 21:05

    I would be interested too.

     

    Thanks.



  • 9.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-24-2020 11:18

    No problem. Added you to the testing list for that TML. Thanks!



  • 10.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-19-2020 17:37

    They need to add a find and locate function like there is in real works e.g. I want to find a point in the project explorer tree , by selecting in plan view and the locating automatically in explorer.

    spell checker would be useful too!



  • 11.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-23-2020 16:30

    Hi Alan,

     

    These are both cool ideas.  Looking for individual items in a large Project Explorer is cumbersome - especially as IDs grow in length.  Hopefully the TBC team can pick these up - and maybe give TML (macro) devs some tools to integrate the features into TMLs.  It would probably take some creativity for a TML to control the Project Explorer externally...

     

    In the meantime, I've added these to our backlog as enhancements for Explorer-like TMLs or TMLs that include text entry.  If these features are ever included, would you be interested in helping to test them?



  • 12.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-23-2020 16:34

    Is spell check only useful in text fields where you're typing descriptions?  Would it be too annoying to have it show up when entering/editing a Name or ID field for example?



  • 13.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-23-2020 21:06

    Spell check ALWAYS is a bother. If we can Switch it on / off, it may be useful.



  • 14.  Re: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 11-24-2020 11:21

    That's good feedback. Maybe an incremental feature would be a right-click option to perform spell-check on selected text within a text box or the entire text box, rather than it being on all the time.



  • 15.  RE: Is there a way to find/replace text in TBC?  Maybe a macro?

    Posted 12-07-2020 05:31

    I also have this question, In terramodel we had a macro called Search and replace, it would find all specific text and replace it with your new text.

    Command : SNR (Search aNd Replace strings)

    Description: This command will replace all occurances of
    a string in the name of points, plines and sets
    This command will also replace text strings for
    text objects.
    Example:TEXT = hello world
    Search = world
    Replace= john
    new text = hello john
    Limitation: This command does not see EAT codes