Home > Net >  Winform shown in the diagram, and updated in real time running status of the circuit
Winform shown in the diagram, and updated in real time running status of the circuit

Time:04-24

Requirements:


Similar to such a circuit, need according to the real-time data, will change the color on the graph line, circuit component change state (this can not consider),

Thinking:
1. Through the way of background, on the original control, change control color
Disadvantages: because there are too many drawings, and drawing on the on and off too complex, controls put too much, will affect the efficiency, but also because tensile problem resolution, position offset

2. Use visio in winform call office visio SDK
Problem: didn't do it, don't know whether it is feasible, a great god, please guide

3. The use of CAD DWG figure nested in winform, by value change corresponding circuit CAD color
Question: this is not done

4. Use the unity map 3 d, with winform calls, nested, values change circuit color

5. Use winform GDI Graphics pure line way
Question: line, component location, size, direction information without, needs to be converted to pixels, a waste of time, and the component drawing up quite a trouble

The above is my summary, several ways can complete this project, a great god please help instruct me, which way is good, how to do, thank you very much!

CodePudding user response:

I think using xna (now called MonoGame) than Unity and effort, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate marked,

CodePudding user response:

reference 1st floor HZTLTGG response:
I think using xna (now called MonoGame) do than Unity efficient, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate marked,
can say specific point

CodePudding user response:

Your top up, no one know

CodePudding user response:

CAD is heavy? Not heavy,
1. Such projects, 10 w start normal target, do you want to know can you get on circuit monitoring, pipeline monitoring are where, what, really has a problem, you want to be a "temporary", "unlicensed programmer"
?2. Someone give you build CAD drawing, you are responsible for writing code, can't give you 20 picture, oneself is more efficient to use gdi + drawing will you

So such projects, now generally directly using Revit AotoCAD its product development support (c #) or use the envi idl

CodePudding user response:

You this after all is to realize the monitoring and control system, common practice is to design a drawing software, will be important components designed to figure yuan, placed on the figure, the other with the standard controls, such as direct, discount, such as
Saved as graphics object type, and then received data corresponding to update the control state, but this practice is not simple, need professional personnel to achieve,

CodePudding user response:

refer to the second floor new moon star snow reply:
Quote: refer to 1st floor HZTLTGG response:
I think using xna (now called MonoGame) do than Unity and effort, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate tag,
can you say specific point


Wanghui0380 right, you this is a serious project? Have the original CAD drawings?

If only his joke, and there were only a few pictures, that is what I mean with MonoGame, your image as a background, then each line with different colors to do another transparent images, according to the need, covering a new color line on the artwork,

CodePudding user response:

reference 4 floor wanghui0380 response:
CAD weight? Not heavy,
1. Such projects, 10 w start normal target, do you want to know can you get on circuit monitoring, pipeline monitoring are where, what, really has a problem, you want to be a "temporary", "unlicensed programmer"
?2. Someone give you build CAD drawing, you are responsible for writing code, can't give you 20 picture, oneself is more efficient to use gdi + drawing will you

So such projects, now generally directly using Revit AotoCAD its product development support (c #) or using the envi idl development
CAD development, development tools used Revit easy? I can not contact, there are examples for reference?

CodePudding user response:

references 9 f HZTLTGG response:
Quote: refer to the second floor new moon star snow reply:
Quote: refer to 1st floor HZTLTGG response:
I think using xna (now called MonoGame) do than Unity and effort, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate tag,
can you say specific point


Wanghui0380 right, you this is a serious project? Have the original CAD drawings?

If only you joke, and there were only a few pictures, that is what I mean with MonoGame, your image as a background, then each line with different colors to do another transparent images, according to the need, covering a new color line on the artwork,
figure may require party a to provide the original CAD

CodePudding user response:

references 9 f HZTLTGG response:
Quote: refer to the second floor new moon star snow reply:
Quote: refer to 1st floor HZTLTGG response:
I think using xna (now called MonoGame) do than Unity and effort, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate tag,
can you say specific point


Wanghui0380 right, you this is a serious project? Have the original CAD drawings?

If only you joke, and there were only a few pictures, that is what I mean with MonoGame, your image as a background, then each line with different colors to do another transparent images, according to the need, covering a new color line on the artwork,
MonoGame never done, easy? Is there a example to learn from

CodePudding user response:

I come to the point, ha ha

CodePudding user response:

reference 13 floor LiveShare_Mr_Dang reply:
I come to the point, haha
I experiment the WPF, junction points [face] monkey2 as soon as possible: 002 PNG [/face]

CodePudding user response:

refer to 12 floor of the new moon star snow reply:
Quote: references 9 f HZTLTGG response:
Quote: refer to the second floor new moon star snow reply:
Quote: refer to 1st floor HZTLTGG response:
I think using xna (now called MonoGame) do than Unity and effort, faster than the GDI, with controls, nested visio or Cad is too heavy,
The key is your artwork is best can parse myself, if only a picture, you can only do some pretreatment, with potential line to separate tag,
can you say specific point


Wanghui0380 right, you this is a serious project? Have the original CAD drawings?

If only you joke, and there were only a few pictures, that is what I mean with MonoGame, your image as a background, then each line with different colors to do another transparent images, according to the need, covering a new color line on the artwork,
MonoGame never done, easy? Ever example


This simple, normal roughly learned
in a few minuteshttps://docs.monogame.net/articles/getting_started/3_understanding_the_code.html
This is playing games, create the project, to realize the Update and the Draw two functions, you get the data in the Update, the Draw in the map, the system automatically cycle to invoke the Update and the Draw, you may want to reduce the call in the Update frequency, called 60 per second is too high,

CodePudding user response:

In fact Mr Into images with GDI also simple, also don't have to use monogame,nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related