In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to draw splines for CAD parameters. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
In CAD design, you need to draw splines, and you can set properties such as spline weight and color.
The function description is mainly used:
_ DMxDrawX::PathLineTo
Moves the next point of the path to the specified location. The details are as follows:
Parameter indicates the X coordinate of the DOUBLE dX point, the Y coordinate of the DOUBLE dY point _ DMxDrawX::DrawPathToSpline
Turn the path into a spline.
Code description for implementation in js:
Function DrawSpline () {/ / change the color back to black and white mxOcx.DrawCADColorIndex = 0; / change the linetype to solid mxOcx.LineType = ""; / / set the lineweight 4 mxOcx.LineWidth = 0; / / create a layer named "SplinelineLayer" mxOcx.AddLayer ("SplinelineLayer"); / / set the current layer to "SplinelineLayer" mxOcx.LayerName = "SplinelineLayer" / / "- -" / / define the start point of a path mxOcx.PathMoveTo (0, 1700) with a spline drawing a solid line; / / the next point of the path mxOcx.PathLineTo (1700) / / the next point of the path mxOcx.PathLineTo (1800); / / the next point of the path mxOcx.PathLineTo (0, 1800); / / synthesize the path into a sample line mxOcx.DrawPathToSpline () / / "- -" / / use the spline mxOcx.AddLinetype to draw a dashed line ("MySplineType", "30 MySplineType"); mxOcx.LineType = ("MySplineType"); mxOcx.DrawCADColor = 255; mxOcx.LineWidth = 5 / / define the start point of a path mxOcx.PathMoveTo (200,200); / / the next point of the path mxOcx.PathLineTo (1700); / / the next point of the path mxOcx.PathLineTo (1800); / / the next point of the path mxOcx.PathLineTo (1700); mxOcx.DrawPathToSpline (); mxOcx.ZoomAll (); mxOcx.UpdateDisplay () } above is how to draw splines with the CAD parameters shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.