Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to other texts + _.lowerCase[str], _.upperCase[str] + _.replace[str, search, replace] #78

Open
blaues0cke opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@blaues0cke
Copy link

Is your feature request related to a problem? Please describe.
I use ParametricText to generate filenames for the models I export directly in Fusion360 (like here). For another project I would also use another text paramter as part of the file name.

Describe the solution you'd like
So I am looking for a way to reference "Sambal Oelek" in this example to use it in the file name later. So

spicefinity-lid-text-cutout-v{version:.0f}-id{inner_diameter:.1f}-wts{wall_thickness_side:.1f}-th{thread_height:.1f}-gd{grip_divider:.1f}-twt{thread_wall_thickness:.1f}-lh{lid_height:.1f}-chd{center_hole_diameter:.1f}

would become something like:

spicefinity-lid-{_.lowerCase[_.replace[_.reference[0], ' ', '-']]}-text-cutout-v{version:.0f}-id{inner_diameter:.1f}-wts{wall_thickness_side:.1f}-th{thread_height:.1f}-gd{grip_divider:.1f}-twt{thread_wall_thickness:.1f}-lh{lid_height:.1f}-chd{center_hole_diameter:.1f}

(new is {_.lowerCase[_.replace[_.reference[0], ' ', '-']]})

to generate a file name like:

spicefinity-lid-sambal-oelek-text-top-v1-id58.0-wts3.0-th4.0-gd5.0-twt4.0-lh4.0-chd32.0

Describe alternatives you've considered
For now I dont now an alternative beside editing the texts manually.

Additional context
image

@blaues0cke blaues0cke added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant