0

I've been trying to implement the Markup Extension in Typescript for Autodesk Forge viewer v6, but it seems like the Typedefinition is missing some of the Namespaces and classes.

I can't use the following line for example:

let shape = new Autodesk.Viewing.Markup.EditModeArrow(this.markup);

It complains that Markup is not defined.

Any ideas?

1 Answer 1

0

Unfortunately the markup extension is not yet covered by our official definitions for Viewer - we will endeavor to address that in the upcoming updates ...

In the meantime as a workaround try declare Autodesk.Viewing.Markup as any.

And at run-time make sure both the Viewer core libraries as well as the MarkupCore extension is loaded before you call the extension.

Sign up to request clarification or add additional context in comments.

1 Comment

Any timeline for this yet?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.