Skip to content

EMSUSD-1221: Unknown warning when selecting USD export option - #4336

Merged
seando-adsk merged 1 commit into
devfrom
donnels/EMSUSD-1221/warning_selecting_usd_export_option
Sep 24, 2025
Merged

EMSUSD-1221: Unknown warning when selecting USD export option#4336
seando-adsk merged 1 commit into
devfrom
donnels/EMSUSD-1221/warning_selecting_usd_export_option

Conversation

@seando-adsk

Copy link
Copy Markdown
Collaborator

EMSUSD-1221: Unknown warning when selecting USD export option

  • Remove duplicated options from default string.
  • Strip float string down to just int part.

* Remove duplicated options from default string.
* Strip float string down to just int part.
@seando-adsk seando-adsk added the import-export Related to Import and/or Export label Sep 23, 2025
Comment thread plugin/adsk/plugin/exportTranslator.cpp
Comment on lines +932 to +936
// Start time might contain a float, but we only want the integer part.
string $startTimeStr = $optionBreakDown[1];
string $startTimeTok[];
tokenize $startTimeStr "." $startTimeTok;
int $startTime = (int)$startTimeTok[0];

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are given a float value in a string, MEL will convert it but will issue a warning. So here I strip off any decimals. If the string contains just an int "10" then the tokenize still works and sets $startTimeTok to ["10"]. If the string contains a float "10.000" then tokenize sets $startTimeTok to ["10", "000"]

@seando-adsk seando-adsk self-assigned this Sep 23, 2025
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 24, 2025
@seando-adsk
seando-adsk merged commit d7f7f49 into dev Sep 24, 2025
11 checks passed
@seando-adsk
seando-adsk deleted the donnels/EMSUSD-1221/warning_selecting_usd_export_option branch September 24, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

import-export Related to Import and/or Export ready-for-merge Development process is finished, PR is ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants